Skip to content

Commit

Permalink
add instruction how run seed data
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Oct 31, 2024
1 parent e30c6b5 commit d6c32f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ If you want to purge all tasks from the Celery queue, you can do this by executi
docker-compose run --rm celery celery -A spotnet_tracker.celery_config purge
```
## How to add test data
1. Run dev container
```
docker-compose -f docker-compose.dev.yaml up --build
```
2. In new terminal window run command to populate db
```
docker exec -ti backend_dev python -m web_app.db.seed_data
```
Empty file added web_app/tasks/__init__.py
Empty file.

0 comments on commit d6c32f9

Please sign in to comment.