A simple backend API built with Express and TypeScript, offering basic CRUD operations to manage notes.
π https://basic-notes-backend.onrender.com
- π GET /notes β Fetch all notes
- π GET /note/:id β Fetch a specific note by ID
- π POST /notes β Create a new note
- βοΈ PATCH /notes/:id β Update a note by ID
- β DELETE /notes/:id β Delete a note by ID
| Method | Endpoint | Description |
|---|---|---|
| GET | /notes |
Fetch all notes |
| GET | /notes/:id |
Fetch a note by ID |
| POST | /notes |
Create a new note |
| PATCH | /notes/:id |
Update a note by ID |
| DELETE | /notes/:id |
Delete a note by ID |
| Tool | Description |
|---|---|
| Strongly typed JavaScript | |
| Web framework for Node.js | |
| JavaScript runtime | |
| Auto-restarting dev server | |
| Run TypeScript files directly |
- Clone the repository:
git clone https://github.com/Sumith-Kumar-Saini/Basic-Notes-Backend.git
cd Basic-Notes-Backend- Install dependencies:
npm install- Build the TypeScript files:
npm run build- Start the server in development mode (hot reload):
npm run devOr in production mode:
npm startThe server will be running at
http://localhost:3000
This project is licensed under the MIT License β see the LICENSE file for details.