This project was bootstrapped with Create React App.
Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.
I couldn't find a simple MERN passport tutorial, so I made one!
Mongo, Express, ReactJS, Node.js, Javascript.
Clone the repo and follow the instructions. You can view each step by running these commands from the terminal:
git checkout step-0
git checkout step-1
...
Run these commands in the terminal:
cd simple-mern-passport
npm install
npm run dev
Complete instructions at https://medium.com/@brendt_bly/simple-mern-passport-app-tutorial-4aec2105e367
- Sign up, login and logout.
- Authentication with passport and bcryptjs.
- Session information stored with express sessions.
- Store data for production in sessions with connect-mongo
- Add redux
Brendt Bly
Thanks to the people who provided great examples: https://code.tutsplus.com/tutorials/authenticating-nodejs-applications-with-passport--cms-21619