Git Product home page Git Product logo

authosys's Introduction

Authentication Task

This is a node project which consists of Authentication modules like passport.js, social authentication(google oauth).

Project Structure:--

-assets
 --css
  ---footer.css
  ---header.css
  ---home.css
  ---layout.css
  ---resetPassword.css
  ---user_profile.css
  ---user_sign_in.css
 --images
 --js
  ---sign-in.js
-config
 --middleware.js
 --mongoose.js
 --nodemailer.js
 --passport-google-oauth2-strategy.js
 --passport-local-strategy.js
-controllers
 --home_controller.js
 --users_controller.js
-mailers
 --login_mailers.js
 --reset_mailer.js
-models
 --user.js
-routes
 --index.js
 --users.js
-views
 --_footer.ejs
 --_header.ejs
 --forgot_password.ejs
 --home.ejs
 --layout.ejs
 --sendMail.ejs
 --user_profile.ejs
 --user_sign_in.ejs
 --user_sign_up.ejs
-index.js
-package.lock.json
-package.json
-README

How to setup project

  1. Clone this project

  2. Start by installing npm and mongoDB if you don't have them already.

  3. Run the Mongo Server.

  4. Create a google login credentials and subsequently a google Oauth ID. Refer this : https://console.developers.google.com/

  5. Create a dummy email id which can be used by mailer.

  6. Navigate to Project Directory by :

    cd Authosys

  7. Run command:

    npm install

    npm start or node index.js

  8. Go to (.env):
     CLIENT_ID= Enter your Client Id
     CLIENT_SECRET= Enter Client_secret
     EMAIL= Enter your Gmail Id
     PASSWORD= Enter your Gmail Password

Feel free to use and contribute! :)

authosys's People

Contributors

ravishankarsingh13 avatar

Stargazers

 avatar

Watchers

 avatar

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.