react-passport-redux-example icon indicating copy to clipboard operation
react-passport-redux-example copied to clipboard

Demonstration of PassportJS authentication in React w/ Redux.

React-Passport-Redux-Example

Demonstration of PassportJS authentication in React w/ Redux.

Installation

First install node.js and mongodb. Then:

npm install

Running in production mode

npm run start

then open http://localhost:3000/ in your browser

Running in development mode

(mostly to allow hot-reloading of React components)

npm run start:dev

Rebuilding production files

npm run build

This repo demonstrates:

Main

  • React for the view layer
  • PassportJS for authentication (using a Local Strategy)
  • Redux to handle our state

Secondary

Shoutout to GitHub member choonkending whose repo was a big help. Pull requests and comments / issue reports are most welcome!