Skip to content

bryaneduarr/hono.js-documented-routes

Repository files navigation

Hono.js OpenAPI

Starter template with a CRUD functionality and type-safe, using scalar and OpenAPI

Project reference here and all credits to the author.

Included

Setup

Install dependencies

bun install

Create SQLite database / push schema

bun drizzle-kit generate
bun drizzle-kit push

View database in drizzle studio

bun drizzle-kit studio

Start development server

bun run dev

Open in browser

http://localhost:3002/reference

Check format and linting with Biome.js

bun run check

Testing with vitest

bun run test

Endpoints

Path Description
GET /doc Open API Specification
GET /reference Scalar API Documentation
GET /tasks List all tasks
POST /tasks Create a task
GET /tasks/{id} Get one task by id
PATCH /tasks/{id} Patch one task by id
DELETE /tasks/{id} Delete one task by id

References

About

A starter template for building fully documented type-safe JSON APIs with Hono and Open API .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published