Creating NodeJS API with MongoDB 🎉
Clone the repo then go inside the folder and Install all the dependencies
yarn install
OR
npm install
Following are the environment variables requied for the project to work properly
- PORT=5001
- DB_HOST=localhost
- JWT_PRIVATE_KEY=somesecret
- DB_NAME=your_db_name
- NODE_ENV=dev
yarn start
OR
npm start
serves the project in port 5001
Jest is being used to test the project
yarn test
OR
npm test