项目
在 GitHub 查看
honojs/examples
关于
使用 Hono 的示例。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Hono Examples
This repository contains examples that use Hono.
Included Examples
- basic - basic usage of routing, middleware, and
Context - blog - CRUD example
- durable-objects - simple example with Cloudflare Durable Objects
- env-vars - example using environment variables with Hono in Typescript:
Bindings&Variables - jsx-ssr - JSX Server Side Rendering with
JSXMiddleware - hono-vite-jsx - Example of using
hono/jsx/domwithvite - serve-static - example of serving static files using Cloudflare Workers
- deno - Deno example
- bun - Bun example
- pages-stack - Zod + Zod Validator +
hc+ React on Cloudflare Pages - stytch-auth - TODO App built with Stytch Auth + Cloudflare Workers +
vite
Running Examples
Install dependencies
npm install
For running the examples, run the below command and replace [workspace] with the example name.
npm -w [workspace] run dev
Or if you have cloned a specific example, you can follow the instructions in the example's README.
For deno examples
deno run --allow-net hello.ts
or allow to read files on local disk:
deno run --allow-net --allow-read jsx.tsx
For bun examples
Install dependencies
bun install
Run the example
bun run hello.ts
Author
Yusuke Wada https://github.com/yusukebe
License
Distributed under the MIT License.
探索相关项目
加载中…