This directory contains the helper script for importing the public mock MongoDB fixture into a local database.
The fixture JSON is not checked into the repository. Download the latest modtale-mock-db-json artifact from the Refresh Mock Database GitHub Actions workflow, then extract the JSON files into:
mock-db/collections/
After extraction, the directory should contain files such as:
mock-db/collections/projects.json
mock-db/collections/users.json
mock-db/collections/comments.json
Install MongoDB Database Tools so mongoimport is available, then run:
MONGODB_URI=mongodb://localhost:27017 \
MONGODB_DATABASE_NAME=modtale-mock \
bash mock-db/import.shPoint the backend at the imported database:
export MONGODB_URI=mongodb://localhost:27017
export MONGODB_DATABASE_NAME=modtale-mock
export WARDEN_ENABLED=falseStart the backend from backend/:
./gradlew bootRunMock sign-in accounts all use the password password:
super_admin
admin
user
atlas_studio
pixelwright
northstar_collective
You can also sign in with seeded email addresses such as:
user@example.test