From d6c32f92b83b41ac1c65d3b80e8148f29ebe7a90 Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Thu, 31 Oct 2024 20:45:17 +0100 Subject: [PATCH] add instruction how run seed data --- README.md | 9 +++++++++ web_app/tasks/__init__.py | 0 2 files changed, 9 insertions(+) create mode 100644 web_app/tasks/__init__.py diff --git a/README.md b/README.md index a25b6c6b..7d093c5d 100644 --- a/README.md +++ b/README.md @@ -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 +``` \ No newline at end of file diff --git a/web_app/tasks/__init__.py b/web_app/tasks/__init__.py new file mode 100644 index 00000000..e69de29b