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
-
React
for the view layer -
PassportJS
for authentication (using a Local Strategy) -
Redux
to handle our state
Secondary
-
React Router
for routing client-side -
Express
for handling server requests (REST and page requests) -
MongoDB
for our database, withMongoose
handling our schema -
Webpack
to bundle our client-side code - Hot reloading using
webpack-dev-middleware
andwebpack-hot-middleware
Shoutout to GitHub member choonkending whose repo was a big help. Pull requests and comments / issue reports are most welcome!