A simple MERN template that has frontend and backend file structured
-
Clone the project
git clone https://github.com/LeeRenJie/MERN-Template.git
-
Change Directory
cd MERN-template
-
Change directory to
/frontend
cd frontend/
-
Install dependencies for frontend
npm install
-
Run frontend (React)
npm start
-
Change directory to
/backend
cd backend/
-
Install dependencies for backend
npm install
-
Run backend (Node+Express+MongoDB)
npm run dev