Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

shubhambattoo/nodejs-api-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS API Boilerplate

Creating NodeJS API with MongoDB 🎉

Usage

Clone the repo then go inside the folder and Install all the dependencies

yarn install

OR

npm install

Setting up the .env file

Following are the environment variables requied for the project to work properly

  1. PORT=5001
  2. DB_HOST=localhost
  3. JWT_PRIVATE_KEY=somesecret
  4. DB_NAME=your_db_name
  5. NODE_ENV=dev

Serve the project

yarn start

OR

npm start

serves the project in port 5001

For Testing

Jest is being used to test the project

yarn test

OR

npm test