/Node-Server-With-2-User-Type

Node Server with 2 user type using passport and JWT

Primary LanguageJavaScript

Sample Node | Express | Mongo | backend with authentication

Updated node backend to latest to work with Angular 10|12

How to use

After cloning do NPM install.
Then in order to use mongo database set up your credentials to a separate .env file along with the server.js file

How to enable/disable CORS and CSURF protection if you want to use cookies

On server.js uncomment or comment the the code where CORS and CSURF was initialize

How to change ports

You can change the port in mongo-db-context.js