Skip to main content
Version: Current

Seed data

Now go and visit localhost:18080 in your browser. You should see a foodsharing instance running on your local machine :)

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

./scripts/seed

It will give you some users that you can log in with:

EmailPasswordRole
user1@example.comuserFoodsharer
user2@example.comuserFoodsaver
storemanager1@example.comuserStore manager
storemanager2@example.comuserStore manager
userbot@example.comuserAmbassador
userbot2@example.comuserAmbassador
userbotreg2@example.comuserAmbassador
userorga@example.comuserOrgateam

Users with workgroup functionality in the region

EmailPasswordworkgroup function
userwelcome1@example.comuserWelcome
userwelcome2@example.comuserWelcome
userwelcome3@example.comuserWelcome
userwelcome4@example.comuserWelcome
uservoting1@example.comuserVoting
uservoting2@example.comuserVoting
uservoting3@example.comuserVoting
uservoting4@example.comuserVoting
userfsp1@example.comuserfoodshare point
userfsp2@example.comuserfoodshare point
userstorecoordination1@example.comuserStore coordination
userstorecoordination2@example.comuserStore coordination
userstorecoordination3@example.comuserStore coordination
userreport1@example.comuserReport
userreport2@example.comuserReport
userreport3@example.comuserReport
usermediation1@example.comuserMediation
usermediation2@example.comuserMediation
usermediation3@example.comuserMediation
userarbitration1@example.comuserArbitration
userarbitration2@example.comuserArbitration
userarbitration3@example.comuserArbitration
userarbitration4@example.comuserArbitration
userfsmanagement1@example.comuserFSManagement
userfsmanagement2@example.comuserFSManagement
userfsmanagement3@example.comuserFSManagement
userpr1@example.comuserPR
userpr2@example.comuserPR
userpr3@example.comuserPR
userpr4@example.comuserPR
userpr5@example.comuserPR
usermoderation1@example.comuserModeration
usermoderation2@example.comuserModeration
usermoderation3@example.comuserModeration
usermoderation4@example.comuserModeration

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

EmailPasswordworkgroup function
storemanager2@example.comuserSupport

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.

{{ #include ide-setup.md }}