Skip to content

hi-shekhar/node_oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node OAuth 2.0

The Application implement the OAuth 2.0 using Node.js and Passport.js

Login Page

Auth Page Screen Shot

Consent Page

Consent Page Screen Shot

User Profile Page

Logged In Page Screen Shot

Built With

  1. Node.js
  2. Passport.js
  3. Postgres SQL
  4. EJS
  5. Knex

Installation

  1. Clone the repo
    git clone https://github.com/shekbruce/node_oauth2.git
  2. Install NPM packages
    npm install

Running the application

  1. Create .env file and add below enironment variables
    • PORT
    • DB_CLIENT
    • DB_HOST
    • DB_PORT
    • DB_USER
    • DB_PASSWORD
    • DB_NAME
    • GOOGLE_CLIENT_ID
    • GOOGLE_CLIENT_SECRET
    • GOOGLE_REDIRECT_URL
    • SECRET_KEY
  2. npm run dev-start
  3. Go to http://localhost:PORT/

Application Work flow

Application work flow