From 243f6212b3c0299bdd4359800615a763fa1b2d07 Mon Sep 17 00:00:00 2001 From: Ben Elferink Date: Mon, 21 Dec 2020 23:57:16 +0200 Subject: [PATCH] Updated README --- README.md | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ba6bb37..20c6f97 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,40 @@ - **R** = [React.js](https://reactjs.org) - **N** = [Node.js](https://nodejs.org) -## Initialize project: +
+
+## How to use this template -###### Server (Backend): +
+### STEP 1: -1. Prepare your MongoDB database -2. Terminal: `cd server` -3. Terminal: `npm install` -4. Set your database within `index.js` -5. Terminal: `npm start` -6. Start writing code... +Click ["Use this template"](https://github.com/belferink1996/MERN-template/generate) to generate a new repository.
+Then open your terminal and clone your repository: -###### Client (Frontend): +> cd ~/Desktop
+> git clone https://github.com/[your-user-name]/[your-repo-name].git -1. Terminal: `cd client` -2. Terminal: `npm install` -3. Terminal: `npm start` -4. Start writing code... +
+### STEP 2: + +Go to your client folder (frontend), and set your workspace: + +> cd ~/Desktop/[your-repo-name]/client
+> npm install
+> npm start + +
+### STEP 3: + +Prepare your MongoDB database,
+then go to your server folder (backend), and set your workspace: + +> cd ~/Desktop/[your-repo-name]/server
+> npm install
+ +Set your database within `index.js`, then start server: + +> npm start + +
+### STEP 4: CODE !!!