- Dev server: https://larp.in.ua/
- ReDoc web UI: https://larp.in.ua/_platform/docs/v1/redoc/
- Swagger web UI: https://larp.in.ua/_platform/docs/v1/swagger/
- Swagger JSON: https://larp.in.ua/_platform/docs/v1/swagger.json
- Swagger YAML: https://larp.in.ua/_platform/docs/v1/swagger.yaml
Install Python 3.8.6 & setup virtual environment. We recommend to use pyenv & pyenv-virtualenv:
pyenv install 3.8.6
pyenv virtualenv 3.8.6 larp_in_ua
pyenv activate larp_in_ua
Update pip
& setuptools
, install fabric
, invoke
& pip-tools
:
pip install -U fabric invoke pip pip-tools setuptools
Install Python requirements:
fab pip.sync
Copy initial settings for Django project:
cp ./api/.env.example ./api/.env
Generate SECRET_KEY
:
./api/manage.py generate_secret_key
and write it to ./api/.env
:
LARP_IN_UA_SECRET_KEY=<your-generated-key>
Run backing services (require Docker):
fab compose.up -d
Run migrations:
./api/manage.py migrate
Run Django server:
fab run