react-passport-redux-example
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
Reactfor the view layerPassportJSfor authentication (using a Local Strategy)Reduxto handle our state
Secondary
React Routerfor routing client-sideExpressfor handling server requests (REST and page requests)MongoDBfor our database, withMongoosehandling our schemaWebpackto bundle our client-side code- Hot reloading using
webpack-dev-middlewareandwebpack-hot-middleware
Shoutout to GitHub member choonkending whose repo was a big help. Pull requests and comments / issue reports are most welcome!