update README.md

This commit is contained in:
Dmitry Afanasyev 2023-11-05 04:24:44 +03:00
parent 9732426a7e
commit 4f995d530b

View File

@ -18,7 +18,7 @@ cp ./src/config/.env.template ./src/config/.env
*Default is Postgres* *Default is Postgres*
## Run without app in docker: ## Manual fill database with data:
Requires python >= 3.11 and poetry >= 1.3.1 Requires python >= 3.11 and poetry >= 1.3.1
@ -35,10 +35,10 @@ poetry shell
- **run initial data:** - **run initial data:**
```bash ```bash
cd src cd src
python /data/fill_data.py python data/fill_data.py
``` ```
## Run all in docker: ## Fill database with full docker script:
**run for mysql:** **run for mysql:**
```bash ```bash
@ -50,6 +50,12 @@ docker compose -f docker-compose.postgres.yaml -f docker-compose.docker.yaml up
``` ```
*Note: docker will start all migrations automatically. You don't need creation data step* *Note: docker will start all migrations automatically. You don't need creation data step*
## Traininq queries:
```bash
python data/get_data.py
```
## Help info: ## Help info:
### Create alembic migrations: ### Create alembic migrations: