Skip to content

iamchathu/nodejs-api-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-api-boilerplate

Starting point for secured Node.js API

How to use this repo.

  • Clone this repository.
  • Rename config.example.js to config.dev.js
  • Add your config to config.dev.js
  • Add your environment variable to gulpfile.js
  • Set MONGO_SEED variable to true
  • Open seed.controller.js and add your seed login details.
  • Run the project using gulp serve
  • Visit the server by http://localhost:9080
  • Run seed by visiting http://localhost:9080/seed
  • Now try to get JWT token by sending a POST request using Postman to endpont http://localhost:9080/auth
{
  "email":"[email protected]",
  "password":"yourpassword"
}

About

Starting point for secured Node.js API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published