From 3505001513949d266378fc102e8a851160808fa0 Mon Sep 17 00:00:00 2001 From: Daniel Mohns Date: Mon, 18 Mar 2024 16:20:25 +0100 Subject: [PATCH] chore: Clarify loading of dummy data --- 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