- Dev server: https://atom-egov.xyz/
- ReDoc web UI: https://atom-egov.xyz/_platform/docs/v1/redoc/
- Swagger web UI: https://atom-egov.xyz/_platform/docs/v1/swagger/
- Swagger JSON: https://atom-egov.xyz/_platform/docs/v1/swagger.json
- Swagger YAML: https://atom-egov.xyz/_platform/docs/v1/swagger.yaml
Install Python 3.8.2 & setup virtual environment. We recommend to use pyenv & pyenv-virtualenv:
pyenv install 3.8.2
pyenv virtualenv 3.8.2 larp_egov
pyenv activate larp_egov
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_EGOV_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