Skip to content
المشاريع

حول

Examples using Hono.

التعلّم والتعليم

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
؜-١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

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 JSX Middleware
  • hono-vite-jsx - Example of using hono/jsx/dom with vite
  • 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.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…