Skip to content

Seed data

For generating a bit of initial data to play with, execute the seeding script:

./scripts/seed

It creates the two regions "Göttingen" and "Entenhausen". It former is a region with GOALS groups (working groups with special permissions), which means that the ambassadors have restricted permissions unless they are also admins of the GOALS groups. "Entenhausen" does not have GOALS groups, hence the ambassador can do almost anything.

By default, most users are members of "Göttingen". The password for all of them is user.

EmailRole
user1@example.comFoodsharer
user2@example.comFoodsaver
storemanager1@example.comStore manager
storemanager2@example.comStore manager
userbot@example.comAmbassador in Göttingen and admin of GOALS groups
userbot2@example.comAmbassador in Göttingen
userbotreg2@example.comAmbassador in Entenhausen
userorga@example.comOrgateam
userauth@example.comOAuth manager

Users with workgroup functionality in "Göttingen":

Emailworkgroup function
userwelcome1@example.comWelcome
userwelcome2@example.comWelcome
userwelcome3@example.comWelcome
uservoting1@example.comVoting
uservoting2@example.comVoting
uservoting3@example.comVoting
userfsp1@example.comfoodshare point
userfsp2@example.comfoodshare point
userstores1@example.comStore coordination
userstores2@example.comStore coordination
userstores3@example.comStore coordination
userreport1@example.comReport
userreport2@example.comReport
userreport3@example.comReport
usermediation1@example.comMediation
usermediation2@example.comMediation
usermediation3@example.comMediation
userarbitration1@example.comArbitration
userarbitration2@example.comArbitration
userarbitration3@example.comArbitration
userfsmanagement1@example.comFSManagement
userfsmanagement2@example.comFSManagement
userfsmanagement3@example.comFSManagement
userpr1@example.comPR
userpr2@example.comPR
userpr3@example.comPR
usermoderation1@example.comModeration
usermoderation2@example.comModeration
usermoderation3@example.comModeration

Some users have additional permissions by being admins of global working groups:

Emailworkgroup function
storemanager2@example.comSupport

Please refer to the User Roles and Permissions section for details on the different roles.
Tip: You can use private browser windows to log in with multiple users at the same time!

The script also generates more dummy users and dummy data to fill the page with life (a bit at least). Should you want to modify it, have a look at the file /src/Dev/SeedCommand.php.

Whenever you make changes to non-PHP frontend files (e.g. .vue, .js or .scss files), those are directly reflected in the running docker instance. Changes to PHP files will require a page reload in your browser.

To stop everything again, just run:

./scripts/stop

PHPMyAdmin is also included: localhost:18081. Log in with:

FieldValue
Serverdb
Usernameroot
Passwordroot

There you can directly look at and manipulate the data in the database which can be necessary or very useful for manual testing and troubleshooting.

MailDev is also included: localhost:18084. There you can read all e-mails that you write via the front end.

Seed data for tests

There is also a second seed script designated for the tests. You can find it in /src/Dev/TestSeedCommand.php. It generates the minimal data that is required by most tests, like some of the base regions.