Skip to content

MERN Stack with PassportJS (and JWT) for users auth and auto refresh on page loading !

Notifications You must be signed in to change notification settings

AlexandreMaul/MERN-Auth-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERN Stack Boilerplate

MongoDB - Express - React - NodeJS

MERN Stack with PassportJS (and JWT) for users auth and auto refresh on page loading !


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to install these tools :

Installing

After cloning the project, you must configure the url of your mongodb server here: server/config/keys.js

Like this :

module.exports = {
  mongoURI: "YOUR_URL", // Example : mongodb://localhost:27017/mernapp
  secretOrKey: "secret"
};

Then you can execute commands to install the NPM modules and launch the project :

cd ./client/
npm i

cd ../server/
npm i

cd ../
npm i -g concurrently nodemon

npm run dev

Developing

For the explanation of the client package : Client

For the explanation of the server package : Server

Built With

  • React - Front library
  • NodeJS - Backend
  • Express - Web framework for the backend
  • Redux - Predictable state container for JavaScript apps
  • PassportJS - Simple, unobtrusive authentication for NodeJS
  • JWT - JsonWebToken implementation for node.js
  • MongoDB - Database server
  • And other...

Authors

Alexandre MAUL

License

This project is licensed under the MIT License

About

MERN Stack with PassportJS (and JWT) for users auth and auto refresh on page loading !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published