Giter VIP home page Giter VIP logo

shivamv12 / nodejssocialauthentication Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 685 KB

OAuth(or Open Authorization) is the approach for authenticating end-user. It makes your application much easier and handy for an end-user, as they can eaily choose a social login (Facebook, Google or Twitter) to signup, instead of filling a boring traditional form with some labels & inputs.

Shell 0.58% JavaScript 15.90% EJS 83.51%
nodejs-api node-social-login facebook-authentication facebook-graph-api instagram-authentication instagram-graph-api google-authentication youtube-api ejs-templates ejs-express

nodejssocialauthentication's Introduction

๐Ÿ” NodeJs Social Authentication

OAuth(or Open Authorization) is the approach for authenticating end-user. It makes your application much easier and handy for an end-user, as they can eaily choose a social login (Facebook, Google or Twitter and so forth) to signup, instead of filling a boring traditional form with some labels & inputs.

๐Ÿ’ป Prerequisites

  • You must have a good knowledge of NodeJs.
    • (How nodejs works, how their middleware helps to intercept the requests, how to handle routes in Nodejs etc.)
  • You should have a basic idea of How OAuth Works.
  • At last but not least, MongoDB basic query (CRUD) knowledge & some mongo driver (like Mongoose) to connect NodeJs to MongoDB Server.

๐ŸŒ€ Clone the Repository

By running the following command on your terminal you will be able to clone this repository.

/$ git clone https://github.com/shivamv12/NodeJsSocialAuthentication.git

After clone the repository, go inside the repo-folder & install all the project dependencies. ๐Ÿ—

/$ cd NodeJsSocialAuthentication โ†ต 
/NodeJsSocialAuthentication $ npm i

Once you install all the dependecies, only thing you need to do is, create environment file and provide all the key's value. (For reference, there is one .env.example file available, there you will find all the required KEYS to run this project.)

For Twitter API Keys/Secret: Create Project/App
For Google API Keys/Secret: Create Project/App
For Facebook / Instagram API Keys/Secret: Create Project/App

After getting all the API keys/secret paste them inside .env file. And run your project using following command.

/NodeJsSocialAuthentication $ npm run dev

After successfully running the project, you will see following screen.

Screenshot from 2021-05-16 15-07-08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.