https://github.com/munene-m/notes-api
Notes api that saves to JSON file
https://github.com/munene-m/notes-api
deno hono
Last synced: about 2 months ago
JSON representation
Notes api that saves to JSON file
- Host: GitHub
- URL: https://github.com/munene-m/notes-api
- Owner: munene-m
- Created: 2024-11-23T19:49:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T20:08:15.000Z (over 1 year ago)
- Last Synced: 2025-06-13T20:02:30.703Z (about 1 year ago)
- Topics: deno, hono
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deno x Hono Notes API
Simple notes api that saves notes to json file
Install dependencies
```
deno install
```
To start the server run the following command
```
deno task dev
```
To create a note make a POST request to `http://localhost:8000/create-note` with the following req body:
```
{
"title": "Example title",
"content": "Example content"
}
```
To get all notes make a GET request to `http://localhost:8000/notes`
To get a single note make a GET request to `http://localhost:8000/notes/:id`