Skip to content

Handling sample authorization in express.js using jwt, passport, mongoose

Notifications You must be signed in to change notification settings

Vladimirbr/express-jwt-passport-local-mongoose-winston

Repository files navigation

express-jwt-passport-local-mongoose-winston

Sample Rest API for login and signup

Handling sample authorization in nodejs express server using jwt, passport, mongoose and mongodb, typescript

Requirements

You should have installed mongodb and nodejs

You can find information about installation of nodejs on the official Node.js website and the official NPM website.

If the installation was successful, you should be able to run the following command.

$ node --version
v14.15.3

$ npm --version
6.14.9

If you need to update npm, you can use npm!

$ npm install npm -g

You can find information about installation of mongodb community edition on the official Mongodb website

Project setup

For installing all needed packages you have to run the below command

  npm install

Configuration

Edit /configs/config.js file and change configuration settings

Running the project

$ npm start

Deployment

Hosted on local host.