To use this starter template you have clone the repo and install the dependencies, after that you can run Backend or Frontend with the given script.
#### Cloning ####
git clone https://github.com/faraz-github/MERN-Stack-Starter-Template.git
#### Installing Dependencies ####
cd root > npm install
cd frontend > npm install
#### Running Application ####
npm run server
npm run client
With the help of these scripts backend and frontend starts using the devDependency of nodemon
also for the Frontend to communicate with the backend port easily we use proxy
BACKEND Package.json
"scripts": {
"start": "node backend/server.js",
"server": "nodemon backend/server.js",
"client": "npm start --prefix frontend"
},
FRONTEND Package.json
"proxy": "http://localhost:5000",