API for betting/voting on various events
- Create a python virtual environment:
python -m venv venv
- Source the virtual env:
a. bash/zsh based shells:
source ./venv/bin/activate
b. cmd:.\venv\Scripts\activate.bat
c. PowerShell:.\venv\Scripts\Activate.ps1
- Install dependencies:
pip install -r webet/requirements.txt
a. Optional alternative: Install dev requirements (pylint, etc) instead. Includes normal requiremnts too:pip install -r webet/requirements-dev.txt
- Install SQL Lite database schemas:
python webet/manage.py migrate
- Create a local super user:
python webet/manage.py createsuperuser
- Start the server
python webet/manage.py runserver
- Pull latest code from master branch
python webet/manage.py migrate
to check for any DB updates