A RESTful API for managing notes, built with Node.js and Express. Project 3 in a sequential backend engineering learning journey — same architecture as the Task Manager and Bookmarks APIs, applied to a new domain.
- Full CRUD for notes (Create, Read, Update, Delete)
- In-memory data store
- Boolean field validation (
pinned) - Centralized error handling
- Clean MVC-style structure (routes / controllers / models)
- Node.js
- Express
npm install
npm run devServer runs on http://localhost:3002.
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/notes | Get all notes |
| GET | /api/notes/:id | Get a single note |
| POST | /api/notes | Create a new note |
| PUT | /api/notes/:id | Update a note |
| DELETE | /api/notes/:id | Delete a note |
{
"title": "Meeting notes",
"content": "Discuss Q3 roadmap",
"pinned": true
}src/ ├── models/ - Data layer ├── controllers/ - Request handling & business logic ├── routes/ - URL-to-controller mapping └── middleware/ - Error handling
Data is stored in memory and resets on server restart, consistent with Project 1 (Task Manager API) and Project 2 (Bookmarks API).