Demonstration of PassportJS authentication in React w/ Redux.
First install node.js and mongodb. Then:
npm install
npm run start
then open http://localhost:3000/ in your browser
(mostly to allow hot-reloading of React components)
npm run start:dev
npm run build
This repo demonstrates:
Main
React
for the view layerPassportJS
for authentication (using a Local Strategy)Redux
to handle our state
Secondary
React Router
for routing client-sideExpress
for handling server requests (REST and page requests)MongoDB
for our database, withMongoose
handling our schemaWebpack
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!