A sample demo project, portraying some best practices in designing and maintaining a backend API.
Stopped before the part Group associated resources together (logical nesting)
.
For detailed info, refer to the original tutorial post.
3 Layer Architecture: (Router)
<-> Controller
<-> Service
<-> Data Access
- Separation of concerns w/ different architecture layers
- Versioning of routes
- Throwing and handling errors
- Easy-to-understand error message
- Clone the repo
- Open Terminal at root level and run:
npm install
- Start the server with
npm run dev