-
Rename
.env.distto.envand fill in required data. -
Docker:
-
You can start a project with Docker right away, and if you don't have it, you can Download it.
-
Run project with next command:
docker-compose up --build -
Run migrations with next command:
docker compose exec api alembic upgrade head
-
-
Without Docker:
-
Create venv
-
Install all requirements:
- Go to tgbot and install requirements
pip install -r requirements.txt - Go to infrastructure and install requirements:
pip install -r requirements.txt
- Go to tgbot and install requirements
-
To start DataBase run next command in the terminal:
postgres -c max_connections=150 -c shared_buffers=512MB -c effective_cache_size=1536MB -c maintenance_work_mem=128MB -c checkpoint_completion_target=0.9 -c wal_buffers=16MB -c default_statistics_target=100 -c random_page_cost=1.1 -c effective_io_concurrency=200 -c work_mem=3495kB -c min_wal_size=1GB -c max_wal_size=4GB -c max_worker_processes=2 -c max_parallel_workers_per_gather=1 -c max_parallel_workers=2 -c max_parallel_maintenance_workers=1 -
Go to
infrastructureand run all migrations with next command in the terminal:alembic upgrade head -
To start bot run next command in the terminal:
python3 bot.py
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Kumala3/shop-admin
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Telegram bot-shop with admin-panel.
Resources
Stars
Watchers
Forks
Packages 0
No packages published