Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.28 KB

File metadata and controls

60 lines (43 loc) · 1.28 KB

Modtale Mock Database

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

Import Locally

Install MongoDB Database Tools so mongoimport is available, then run:

MONGODB_URI=mongodb://localhost:27017 \
MONGODB_DATABASE_NAME=modtale-mock \
bash mock-db/import.sh

Point the backend at the imported database:

export MONGODB_URI=mongodb://localhost:27017
export MONGODB_DATABASE_NAME=modtale-mock
export WARDEN_ENABLED=false

Start the backend from backend/:

./gradlew bootRun

Mock Accounts

Mock 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