8000 GitHub - EODavis/notes-api · GitHub
[go: up one dir, main page]

Skip to content
EODavisPublic

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes API

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.

Features

  • 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)

Tech Stack

  • Node.js
  • Express

Getting Started

npm install
npm run dev

Server runs on http://localhost:3002.

API Endpoints

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

Example request body (POST/PUT)

{
  "title": "Meeting notes",
  "content": "Discuss Q3 roadmap",
  "pinned": true
}

Project Structure

src/ ├── models/ - Data layer ├── controllers/ - Request handling & business logic ├── routes/ - URL-to-controller mapping └── middleware/ - Error handling

Notes

Data is stored in memory and resets on server restart, consistent with Project 1 (Task Manager API) and Project 2 (Bookmarks API).

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0