Giter Club home page Giter Club logo

loginauthentication's Introduction

NODE AUTHENTICATION App

Getting Started

npm install -g gulp
npm install
gulp start
this will spin up a browsersync and nodedemon instance
open up http://localhost:7000/ in tab in chrome
### dependencies ###
React,
React router
Node,
Express

### HOW IT WORKS
When not logged in A user can visit three routes
home '/', '/login', '/'signup'

once user signs up
they will get a message stating that they have sucessfuly signed in now they can go to login and sign in
for signup page - application checks if it's a valid email and password - password must be 5 characters in length

once user logins they will be redirected to '/me' path which renders out namne and email and a link to logout to start process over again
and redirects back to home page

There's also a 404 page for paths not related to ones above

Authentication done via json web token and mongo has validation - password is hashed using bcrypt

user needs to set up own mongodb account - I'm using mlab
set up file in this directory and name
app/configuration/configuath.js with following

module.exports = {
    mongo: {mongolink},
    jwtSecret : {whateveryouwant}
};

loginauthentication's People

Watchers

 avatar  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.