Skip to content

Node Authorization API incorporating Json Web Tokens. Download this Boilerplate for quick start . Incorporating Mongodb

License

Notifications You must be signed in to change notification settings

jwill9999/Node_Auth_API_with_JWT_Boilerplate

Repository files navigation

Node Server Auth API

> git clone https://github.com/jwill9999/Node_Auth_API_with_JWT_Boilerplate.git
> cd Node_Auth_API_with_JWT_Boilerplate
> npm install
> connect to your database first then
> npm run dev
> Server is run on port 3000

API Endpoints

/signin

web_token POST in header as authorization key

/signup

web_token returned as json object to user

Additional setup

connect a Mongodb database prior to running the API server

environmental variables should be declared in a .env file

The two variables you should declare are

JWT_SECRET

DATABASE_CONNECTION

Key Features

Node Express Server

API Backend

MongoDb Database

Authorisation

Passport Js Local and JWT

Json Web Tokens

AuthGuards

Bcrypt Salt and Hash Encryption

Links

Expressjs

passportjs Local

Passportjs JWT

MongoDb Docs

Bcrypt for nodejs

Dotenv Documentation

Releases

No releases published

Packages

No packages published