Skip to content

Commit 329eba0

Browse files
docs(api): add troubleshooting section (freeCodeCamp#57896)
1 parent 256266b commit 329eba0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ cd ../.. # back to the root of the repo
2525
pnpm seed
2626
```
2727

28+
### Troubleshooting
29+
30+
If you have any issues connecting to the database (e.g. MongoServerError: not primary), try removing the volume and recreating the containers.
31+
32+
```bash
33+
cd tools
34+
docker compose down -v
35+
docker compose up -d
36+
```
37+
2838
## Login in development/testing
2939

3040
During development and testing, the api exposes the endpoint GET auth/dev-callback. Calling this will log you in as the user with the email `[email protected]` by setting the session cookie for that user.

0 commit comments

Comments
 (0)