Skip to content

Gamazic/p2p_exchanger

Repository files navigation

P2P Exchanger

Backend project on python.

Telegram Bot

Local run

Run bot with polling mode with the following command:

python src/interfaces/aiogram/main.py start_polling

Production run

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

Preview

Telegram bot preview

API

Local run

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

OpenAPI

Preview

Swagger preview

By default, for the Starlite server, the Swagger is available on host:port/schema (http://localhost:8000/schema)

Testing

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages