Connect Me is an express js implementation of social logins using passportjs OAuth 2.0. User authentication through google,facebook ,twitter and linkedin.
NODEJS EXPRESSJS MONGODB ATLAS PASSPORTJS
.
├── 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
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
This project is open to contribution in efforts of improving the performance