NodeJS Authentication API, using Express, JWT & MongoDb
- User model
- MongoDB as Database
- JWT Authentication & Authorization
Clone this repository
git clone https://github.com/soumyadeepdutta/node-authentication.git
Change directory to 'node-authentication'
$cd node-authentication
Create a .env (configuration) file here, which includes
PORT = 3000 // the port to be used during development
DB_CONNECT = <your-mongodb-uri>
Install the dependencies and start the server
$npm install
$num run start
To run in development mode using Nodemon (hot-reload)
$npm run devstart
Report bugs here .