Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.07 KB

File metadata and controls

45 lines (25 loc) · 1.07 KB

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.