If you are on Windows, you will need to run this whole project in WSL
poetry install
to install all Python dependenciesIf you are on Windows, you will need to run this whole project in WSL
redis-server
poetry run python server.py
(in /src
)poetry run python -m celery -A gcom worker
(in /src
)This project uses poetry
. To install poetry, follow the guide on the
website. Then run: poetry install
to install required dependencies.
Some relavent commands you may want to know:
poetry shell
- Spawns and activates the poetry venv. Run exit
to
exit the venvpoetry add <module>
- Add a dependencypoetry remove <module>
- Remove a dependencypoetry run <command>
- Run a command in the poetry venv without
activating itDocumentation is automatically generated by drf-spectacular
to the
OpenAPIv3 standard. Sometimes, you may wish your endpoints be displayed
a bit differently and you can use the @extend_schema
decorator to
further control how your endpoint is displayed.