Backend project on python
.
Run bot with polling mode with the following command:
python src/interfaces/aiogram/main.py start_polling
Run bot with webhook mode with the following command:
python src/interfaces/aiogram/main.py start-webhook
Or run via docker-compose.yml
:
docker-compose up bot
With this command API will be available on http://localhost:8000
uvicorn src.interfaces.starlite.main:app --reload
Or run via docker-compose.yml
docker-compose up backend
By default, for the Starlite
server, the Swagger
is available on host:port/schema
(http://localhost:8000/schema
)
Run unit-tests and coverage report with command
pytest --cov=src tests/
Also, you can run all linters at once with pre-commit
by following command:
pre-commit run --all-files