The Application implement the OAuth 2.0 using Node.js and Passport.js
- Node.js
- Passport.js
- Postgres SQL
- EJS
- Knex
- Clone the repo
git clone https://github.com/shekbruce/node_oauth2.git
- Install NPM packages
npm install
- 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
-
npm run dev-start
- Go to http://localhost:PORT/