Skip to content

Commit

Permalink
add docs on seeding local database (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang authored Feb 3, 2025
1 parent 716ecb4 commit d8fa184
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/src/getting-started/local-development.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# Local Development

## Seeding Local Database

A seeded database is required for some pages on the frontend.

```sh
# ./berkeleytime

# Ensure the MongoDB instance is already running.
docker compose up -d

# Download the data
curl -O https://storage.googleapis.com/berkeleytime/public/stage_backup.gz

# Copy the data and restore
docker cp ./stage_backup.gz berkeleytime-mongodb-1:/tmp/stage_backup.gz
docker exec berkeleytime-mongodb-1 mongorestore --drop --gzip --archive=/tmp/stage_backup.gz
```

0 comments on commit d8fa184

Please sign in to comment.