import { Hono } from "hono";const app = new Hono();app.get("/", c => c.text("Hono!"));export default app;
使用 create-hono 从 Hono 的项目模板开始。提示选择模板时请选择 bun。
terminal
bun create hono myapp
create-hono version 0.19.4✔ Using target directory … myapp✔ Which template do you want to use? bun✔ Do you want to install project dependencies? Yes✔ Which package manager do you want to use? bun✔ Cloning the template✔ Installing project dependencies🎉 Copied project filesGet started with: cd myapp