/node-authentication

NodeJS Authentication and Authorization boiler-plate code with JWT & MongoDB

Primary LanguageJavaScript

NodeJS Authentication boiler-plate

NodeJS Authentication API, using Express, JWT & MongoDb

Features

  1. User model
  2. MongoDB as Database
  3. JWT Authentication & Authorization

Usage

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 .