# MERN Stack Template
- **M** = [MongoDB](https://www.mongodb.com)
- **E** = [Express.js](https://expressjs.com)
- **R** = [React.js](https://reactjs.org)
- **N** = [Node.js](https://nodejs.org)
# How to use this template
[📀 Demo video](https://youtu.be/N2pvvkyoS68)
### STEP 1:
Click ["Use this template"](https://github.com/belferink1996/MERN-template/generate) to generate a
new repository.
Then open your terminal and clone your repository:
> cd ~/Desktop
git clone https://github.com/[your-user-name]/[your-repo-name].git
### STEP 2:
Go to your repository's folder, and install all dependecies:
> cd ~/Desktop/[your-repo-name]
npm install
### STEP 3:
Prepare your MongoDB database ([atlas](https://www.mongodb.com/cloud/atlas),
[community]()).
Then go to your server folder (backend), and set your database within `server.js`,
### STEP 4: CODE !!!
# Node dependecies & versions:
###### Client:
> axios: 0.21.1 ---> Use the API
react: 17.0.1
> ---> UI framework
react-dom: 17.0.1
> ---> UI framework
react-scripts: 4.0.2 --->
> React 'npm' scripts
###### Server:
> cors: 2.8.5 ---> Enable HTTP requests
dotenv: 8.2.0
> ---> Secure sensitive information
express: 4.17.1
> ---> Server app
mongoose: 5.11.15
> ---> MongoDB database
morgan: 1.10.0 --->
> Logs incoming requests