Skip to content

Files

Latest commit

c2d149b · Mar 15, 2023

History

History
This branch is 6364 commits behind freeCodeCamp/freeCodeCamp:main.

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 14, 2023
Mar 9, 2023
Mar 9, 2023
Mar 14, 2023
Mar 15, 2023
Mar 15, 2023
Mar 14, 2023
Mar 14, 2023
Mar 14, 2023
Mar 15, 2023
Mar 15, 2023
Feb 24, 2023

README.md

Connecting to local database

The api uses the ORM Prisma and it needs the MongoDB instance to be a replica set.

Atlas

If you use MongoDB Atlas, the set is managed for you.

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 the docker-compose file.

cd tools
docker compose up -d