Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinhellos/hono-api-crud
Basics Hono API routes for CRUD (GET, POST, PUT, DELETE)
https://github.com/kevinhellos/hono-api-crud
honojs
Last synced: 27 days ago
JSON representation
Basics Hono API routes for CRUD (GET, POST, PUT, DELETE)
- Host: GitHub
- URL: https://github.com/kevinhellos/hono-api-crud
- Owner: kevinhellos
- License: mit
- Created: 2024-09-17T19:57:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T02:33:23.000Z (4 months ago)
- Last Synced: 2024-10-25T10:36:17.958Z (3 months ago)
- Topics: honojs
- Language: TypeScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hono API CRUD Basics
Basics Hono API routes for CRUD (GET, POST, PUT, DELETE)> [!NOTE]
> The configuration for this Hono App has been setup to be deployed in Cloudflare Workers## Available routes
### GET /api/books
- Retrieves a list of all books### GET /api/books/:id
- Retrieves a book by its id### POST /api/books
- Adds a new book### PUT /api/books
- Updates a book### DELETE /api/books/id
- Deletes a book by its id## Running the project
- Run ``npm install`` to install all of the projects' dependencies
- Run ``npm run`` to start a local development server (http://localhost:8787) (for mine)