-
Rename the
.envexample to.envand add yourMONGO_URI -
Install dependencies
# Backend deps
npm install# Frontend deps
cd frontend
npm install- Run Server
npm run server- Write the code to configure the database
- Write the code for models
- Write the code for controllers
- Write the code for the routers
- Test each end point before proceeding any further
The file tree structure for the starter code:
- backend/
- config/
- db.js
- controllers/
- goalController.js
- userController.js
- middleware/
- authMiddleware.js
- errorMiddleware.js
- models/
- goalModel.js
- userModel.js
- routes/
- goalRoutes.js
- userRoutes.js
- server.js
- frontend/
- package.json
- .env
- .gitignore