A simple web application that serves as a boilerplate to quickly develop MERN stack applications. This project makes use of MongoDB, Express, React, and Node.js. This boilerplate already includes authentication/authorization thanks to Passport and provides support for Sass.
After installing Node and cloning the repository, set your environment variables inside of a .env
file like this:
JWT=# JWT Secret here
MONGO=# MongoDB URI here
Once the environment variables are set, we install dependencies by running:
npm run setup
To start the backend server, run:
npm run server
To start the frontend client, run:
npm run client
To start the server and the client simultaneously, run:
npm run dev
In order to use Redux for state management instead of the React Context API, switch to the redux
branch by running:
git checkout redux