/simple-mern-passport

A template and tutorial for integrating passport to a MERN app.

Primary LanguageJavaScript

Simple MERN Passport Template

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.

About

I couldn't find a simple MERN passport tutorial, so I made one!

Built With

Mongo, Express, ReactJS, Node.js, Javascript.

Getting Started

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
...

Prerequisites

Installing

Run these commands in the terminal:

cd simple-mern-passport
npm install
npm run dev

Instructions

Complete instructions at https://medium.com/@brendt_bly/simple-mern-passport-app-tutorial-4aec2105e367

Completed Features

  • 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

Next Steps

  • Add redux

Author

Brendt Bly

Acknowledgments

Thanks to the people who provided great examples: https://code.tutsplus.com/tutorials/authenticating-nodejs-applications-with-passport--cms-21619

https://github.com/thechutrain/mern-passport