Handling sample authorization in nodejs express server using jwt, passport, mongoose and mongodb, typescript
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
For installing all needed packages you have to run the below command
npm install
Edit /configs/config.js file and change configuration settings
$ npm start
Hosted on local host.