百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hono-starter

> 数据库
开源

hono-starter - 一个使用 Node + Hono + Drizzle + MySQL + BullMQ 的 TypeScript API

190 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

hono-starter - 一个使用 Node + Hono + Drizzle + MySQL + BullMQ 的 TypeScript API

Hono Starter

A Hono starter boilerplate for TypeScript with minimal dependencies and a clean architecture. All dependencies are initiated at the start of the application and passed to the controllers and services. A swagger API doc is attached in the static folder: openapi.yaml.

API Doc powered by Swagger UI

Database browser powered by Drizzle Studio

Stack

  • Authentication: JWT
  • Validation: Zod
  • Worker: BullMQ
  • Logging: Pino
  • ORM: Drizzle
  • Queue: Redis
  • DB: MySQL
  • Runtime: NodeJS
  • Framework: Hono
  • Formatter: Biome
  • API Doc: Swagger
  • Language: TypeScript
  • Package Manager: PNPM

Install dependencies

bash
pnpm install
pnpm install -g typescript
pnpm install -g pino-pretty

Run the app

Create a new file .env in the root folder and copy contents from the .env.template file.

bash
docker compose up -d

Generate db table

bash
pnpm run db:generate

Migrate schema

bash
pnpm run db:migrate

Open Swagger UI

bash
open http://localhost:3000/doc

API Doc

The OpenAPI YAML doc is in the static folder.

If you need the JSON file, it can be generated with the help of yq.

https://github.com/mikefarah/yq

bash
yq eval -o=json static/openapi.yaml > static/openapi.json

And the JSON doc will be generated.

Drizzle Studio For Database Browsing

bash
pnpm drizzle-kit studio
open https://local.drizzle.studio/

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptboilerplatebullmqclean-architecturedocker-compose

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库