This is a Boilerplate MERN application with authentication using JSON Web Tokens. This app was designed to be used as a starting point for any developer looking to integrate authentication with a MERN application.
- React
- Node.js
- Express
- MongoDB
- Javascript
- Redux
- JSON Web Tokens
- REST API
First, clone this repository:
git clone https://github.com/Crowe828/mern-boilerplate.git
To install necessary dependencies, run the following command:
npm install
To start using this project:
1. Install node modules for both the front and back end with: npm i
2. Use a Mongo service like Mongo Atlas to create your database and credentials.
3. Create a .env file at the root location of the project to handle the database credentials and JWT secret:
# Database Info
DATABASE_INFO = "Your Mongo Credentials"
# JWT Secret
JWT_SECRET = "Your JWT Secret"
4. Run the following command to start the application: npm run dev