Inspired by FastFoodMemes telegram bot
➡️ https://t.me/megabotbot ⬅️
cp .env.example .envdocker network create ffmemes_networkdocker-compose up -d --build
Don't forget to fill the local .env file with all envs you need.
Before sending a PR you must test your new code. The easiest way is to run ipython shell, then import the functions you may need and test them. Note that ipython can run async functions without wrapping them with asyncio.run(...).
docker compose exec app ipythonFormat the code with ruff --fix and ruff format
docker compose exec app format- Create an automatic migration from changes in
src/database.py
docker compose exec app makemigrations *migration_name*- Run migrations
docker compose exec app migrate- Downgrade migrations
docker compose exec app downgrade -1 # or -2 or base or hash of the migration