simple user account registering and login app using GOOGLE-ACCOUNT and authentication using json web token. Nodejs App (MVC) and MongoDb
- npm latest version (node.js)
- Nodejs
- ExpressJs
- MongoDb
- Jquery
- Mdbootstrap
- Bootstrap
npm install --save
Dependencies are:
express, bcrypt, cors, jsonwebtoken, passport, passport-google-oauth2, mongoose, cookie-parser, bootstrap, mdbootstrap, jquery, express-session, helmet
npm install --save-dev
Dev Dependency is:
nodemon, dotenv
PORT=?
DATABASE_URI=?
GOOGLE_CLIENT_ID=?
GOOGLE_CLIENT_SECRET=?
GOOGLE_CALLBACK_URL=?
SECRET_ACCESS_TOKEN=?
SECRET_REFRESH_TOKEN=?
go to https://console.developers.google.com/ add project, create credential then add your api endpoints then retreive your google api informations.
node
require('crypto').randomBytes(64).toString('hex')
npm run devStart
Or
nodemon app.js