Updated README

This commit is contained in:
Ben Elferink
2020-12-21 23:57:16 +02:00
parent ad0098bc7c
commit 243f6212b3

View File

@@ -5,20 +5,40 @@
- **R** = [React.js](https://reactjs.org) - **R** = [React.js](https://reactjs.org)
- **N** = [Node.js](https://nodejs.org) - **N** = [Node.js](https://nodejs.org)
## Initialize project: <br />
<br />
## How to use this template
###### Server (Backend): <br />
### STEP 1:
1. Prepare your MongoDB database Click ["Use this template"](https://github.com/belferink1996/MERN-template/generate) to generate a new repository.<br />
2. Terminal: `cd server` Then open your terminal and clone your repository:
3. Terminal: `npm install`
4. Set your database within `index.js`
5. Terminal: `npm start`
6. Start writing code...
###### Client (Frontend): > cd ~/Desktop <br />
> git clone https://github.com/[your-user-name]/[your-repo-name].git
1. Terminal: `cd client` <br />
2. Terminal: `npm install` ### STEP 2:
3. Terminal: `npm start`
4. Start writing code... Go to your client folder (frontend), and set your workspace:
> cd ~/Desktop/[your-repo-name]/client <br />
> npm install <br />
> npm start
<br />
### STEP 3:
Prepare your MongoDB database,<br />
then go to your server folder (backend), and set your workspace:
> cd ~/Desktop/[your-repo-name]/server <br />
> npm install <br />
Set your database within `index.js`, then start server:
> npm start
<br />
### STEP 4: CODE !!!