- MVC (Model-View-Controller) pattern
- Structure
app.jsis the main entry point of your applicationserver.jsimports the app.js and starts the server on port 3000.routes/api/contacts.jsAPI routes.controllers/contacts/...controller function responsible for ...middlewares/ctrlWrapper.jsa wrapper middleware function that handles the try-catch block for each controller.models/contacts.jsdefines the data model for contacts and provides functions to interact with the dataservices/contacts/...part of the services layer and calls ...schemas/contacts.js- Joi schema for validation
-
Notifications
You must be signed in to change notification settings - Fork 0
oliverplay/module-2-presentation
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published