This application includes authentication with OAuth using Passport middleware.
Firstly, install node module with following command
npm installCreate
.envfile and setup mongoDB with credentials.
Then follow link to genrate credentials of google OAuth2
https://support.google.com/cloud/answer/6158849?hl=enand for Facebook go toMeta for developersite for credentials.
Setup the .env file with those credentials for both google and Facebook OAuth 2.0
Run mongoDB server:
mongodthen run app.js file to start the application
node app.js - Find documentation for OAuth2.0 form google and meta developer sites
- Learn passport midleware to setup OAuth
Passport