From a33bb3c85dfca7b92a4a30ae9839295bd98ad96f Mon Sep 17 00:00:00 2001 From: Daniel Mohns Date: Mon, 18 Mar 2024 16:25:49 +0100 Subject: [PATCH] chore: Clarify loading of dummy data (#67) --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 74140c071..80b17c001 100644 --- a/README.md +++ b/README.md @@ -212,11 +212,23 @@ When you run the application for the first time, you need to run the following c docker exec -it laravel bash cd mpmanager php artisan sharding:initialize +``` + +This command will create the central database which is required for MPM to function. + +If you want to load sample (dummy) data for testing run: + +```bash +docker exec -it laravel bash +cd mpmanager php artisan dummy:create-company-with-dummy-data +php artisan migrator:copy +php artisan migrator:migrate ``` -These commands will create the central database and the first company database. The first company database will have -dummy data. +This commands will create the first company database with dummy data from a snapshot. +It will then apply any migrations that have been added to the application after the snapshot has been taken. + You can use the following credentials to login to the application: ```sh