Starting point for secured Node.js API
How to use this repository.
- Clone this repository.
- Rename
.env.example
to.env
- Add your config to
.env
- Install dependencies
npm i
oryarn install
or simplyyarn
- Run the project using
npm start
oryarn start
- Visit the server by
http://localhost:3080
- Now try to get JWT token by sending a
POST
request using Postman to end-ponthttp://localhost:9080/auth
{
"email": "admin@somemail.com",
"password": "pass"
}