Skip to content

An implementation of passportjs oauth2.0 social logins.User authentication through google ,facebook ,twitter and linkedin

Notifications You must be signed in to change notification settings

Newton-Nganga/passportjs-oauth

Repository files navigation

Connect Me

Connect Me is an express js implementation of social logins using passportjs OAuth 2.0. User authentication through google,facebook ,twitter and linkedin.

passport logo

Tech stack used

NODEJS EXPRESSJS MONGODB ATLAS PASSPORTJS

Folder structure

.
├── controllers
│   └── controller.js
├── db.js
├── models
│   └── models.js
├── package.json
├── package-lock.json
├── Passport
│   ├── passport-setup.js
│   └── strategies
│       ├── facebookStrategy.js
│       ├── googleStrategy.js
│       ├── linkedinStrategy.js
│       └── twitterStrategy.js
├── public
│   ├── css
│   │   └── styles.css
│   ├── images
│   │   ├── background.jpg
│   │   ├── facebook.png
│   │   ├── google.png
│   │   ├── linkedin.png
│   │   └── twitter.png
│   └── js
├── routers.js
├── server.js
├── utils
│   └── middlewares.js
└── views
    ├── 404.ejs
    ├── index.ejs
    ├── partials
    │   └── header.ejs
    └── profile.ejs

Usage

For local Use

Preliquisites :
👉 node version 18.16.x
👉 nodemon globally installed

clone this github repo

git clone https://github.com/Newton-Nganga/passportjs-oauth

Install the require modules and depencies

npm install

Add the environment variables
create a .env file and add the required environment variables
Run the application using nodemon

npm start

Building the application for production

npm run build

For testing visit https://connect-me-bywn.onrender.com/api

Screensnap of the tesing site

Connect Me

Contribution

This project is open to contribution in efforts of improving the performance

About

An implementation of passportjs oauth2.0 social logins.User authentication through google ,facebook ,twitter and linkedin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published