- The entire course is of 14 Parts. Core course is 7 Parts.
- This repository consists of exercises from Part 3.
- Check Parts 0 - 2
- Deployed Phonebook application on Render
| Exercises | Description |
|---|---|
| 3.1 to 3.8 | Build REST API using Express, API testing using REST Client extension, Middleware logging using morgan |
| 3.9 to 3.11 | Deploy backend using Render - Deployed Phonebook app, Deploy frontend production build |
| 3.12 to 3.18 | MongoDB-mongoose test deployment, MongoDB-mongoose setup with backend, Error handling Middleware |
| 3.19 to 3.22 | Input validation, Refactor to fix ESLint warnings |
- Recommended structure based on best practices for server-app files seperation ( check comments for more useful info )
├── index.js
├── app.js
├── controllers
│ └── contactsController.js
├── dist
│ └─-...
├── models
│ └── contact.js
|-- node_modules
| └─-...
|-- requests
| └─-...
|-- routes
| └─- contacts.js
├── utils
│ ├── config.js
│ ├── logger.js
│ └── middleware.js
|-- .env
├── .gitignore
├── eslint.config.mjs
├── package.json
├── README.md
graph LR
subgraph FRONTEND-'dist'
PL[Presentation Layer]
CMP[Components]
CLAP[Client-API]
end
subgraph BACKEND
subgraph SERVER
I[index.js]
A[app.js]
end
subgraph UTILITIES
CNF[config.js]
LG[logger.js]
MW[middleware.js]
end
subgraph CONTROLLERS
C[contactsController.js]
end
subgraph ROUTES
R[contacts.js]
end
subgraph MODELS
M[contact.js]
end
end
subgraph DATBASE
MDB[MongoDB]
end
PL <--> CMP
CMP <--> CLAP
CLAP <--> I
I <--> A
A <--> C
A <--> R
A <--> CNF
A <--> LG
A <--> MW
C <--> M
M <--> MDB
R --> C