-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
- Loading branch information
1 parent
9319253
commit 06d4076
Showing
7 changed files
with
94 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
# Connecting to local database | ||
# Working on the new api | ||
|
||
## Connecting to local database | ||
|
||
The api uses the ORM Prisma and it needs the MongoDB instance to be a replica set. | ||
|
||
## Atlas | ||
### Atlas | ||
|
||
If you use MongoDB Atlas, the set is managed for you. | ||
|
||
## Local | ||
### Local | ||
|
||
The simplest way to run a replica set locally is to use the docker-compose file | ||
in /tools. First disable any running MongoDB instance on your machin, then run | ||
in /tools. First disable any running MongoDB instance on your machine, then run | ||
the docker-compose file. | ||
|
||
```bash | ||
cd tools | ||
docker compose up -d | ||
``` | ||
|
||
## Login in development/testing | ||
|
||
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 `foo@bar.com` by setting the session cookie for that user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,3 +76,4 @@ CODESEE=false | |
NODE_ENV=development | ||
PORT=3000 | ||
FCC_ENABLE_SWAGGER_UI=true | ||
FCC_ENABLE_DEV_LOGIN_MODE=true |