Skip to content

Client side authentication with Express, React, Mongo and Passport

Notifications You must be signed in to change notification settings

mrgrotts/Express-React-Mongo-Passport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

react-router-v4-redux-auth

This is an application that models the implementation of JWT with the following:

frontend:

  • react-router v4
  • react
  • redux
  • redux-form v6.7
  • material-ui

backend:

  • express.js
  • MongoDB
  • passport.js

Usage:

  1. Start a MongoDB server running on port 27017

  2. In /server, create a new file called config.js to hold your JWT secretOrKey. Here is an example:

    /*
    /server/config.js
    */
    
    module.exports = {
      secret: 'sdajkljdsalkj8932904ujaskfs'
    }
  3. Navigate to /server in your terminal

    1. run npm install.
    2. run npm run dev to start the server
  4. Navigate to /client in a new terminal window

    1. run yarn install
    2. run yarn start to start the webpack dev server
  5. Navigate to localhost:3000 in your browser

About

Client side authentication with Express, React, Mongo and Passport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published