Starting point for secured Node.js API
How to use this repo.
- Clone this repository.
- Rename
config.example.jstoconfig.dev.js - Add your config to
config.dev.js - Add your environment variable to
gulpfile.js - Set
MONGO_SEEDvariable totrue - Open
seed.controller.jsand 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
POSTrequest using Postman to endponthttp://localhost:9080/auth
{
"email":"youremail@domain.com",
"password":"yourpassword"
}