freeCodeCamp/api
renovate[bot] afa246942e fix(deps): update dependency fastify to v4.15.0 2023-03-26 15:59:50 +00:00
..
db feat(api): add prisma as orm (#49413) 2023-03-14 17:29:55 +00:00
middleware feat(api): sessions management (#49499) 2023-03-09 20:36:33 +05:30
plugins feat(api): setup jest in new api (#49709) 2023-03-16 20:33:40 +05:30
prisma feat(api): add prisma as orm (#49413) 2023-03-14 17:29:55 +00:00
routes chore: update api test suite and include it in run test (#49794) 2023-03-23 16:57:11 +00:00
schemas feat(api): create a demo type provider for typebox (#49536) 2023-03-15 14:21:25 +00:00
tools feat(api): add prisma as orm (#49413) 2023-03-14 17:29:55 +00:00
utils feat(api): API documentation with Swagger UI (#49791) 2023-03-24 10:00:51 +01:00
README.md feat(api): add prisma as orm (#49413) 2023-03-14 17:29:55 +00:00
app.ts feat(api): API documentation with Swagger UI (#49791) 2023-03-24 10:00:51 +01:00
jest.config.ts feat(api): setup jest in new api (#49709) 2023-03-16 20:33:40 +05:30
package.json fix(deps): update dependency fastify to v4.15.0 2023-03-26 15:59:50 +00:00
server.test.ts chore: update api test suite and include it in run test (#49794) 2023-03-23 16:57:11 +00:00
server.ts chore: update api test suite and include it in run test (#49794) 2023-03-23 16:57:11 +00:00
tsconfig.json chore: extend lint:ts to cover api (#49793) 2023-03-22 17:59:46 +05:30

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