Ensure you have the following installed on your system:
- Python (3.10+)
- pip (Python package manager)
- Virtualenv
git clone https://github.com/clock-workorange/LotteryLatamNodesBack.git
cd LotteryLatamNodesBack- Create a virtual environment:
python3 -m venv .venv- Activate the virtual environment:
source .venv/bin/activate- Install other dependencies listed in requirements
pip install -r requirements/dev.txt- Create database
- Install postgresql on system
- Create Database on on postgresql
- Change .env file configuration
nano .env
DB_USER=postgres
DB_HOST=localhost
DB_PASSWORD=localhost_pwdpython manage.py makemigrations
python manage.py migratepython manage.py createsuperusersh start.sh
sh celery_db.sh
sh celery_info.shpython manage.py shellfrom latam_nodes.delegator.tasks import save_delegators_task, create_ticket
save_delegators_task()
create_ticket()username: test
password: testpasswordThat info is from python manage.py createsuperuser
- Winning percentage: Percentage number of Reward that delegators will get
- Ticket cost: Cost per ticket(Delegators will get
staking amount / ticket cost's ticket for free) - Draw date: The date the Lottery ends(You have to set this value after now)