First steps — Basics · Hono

Create a Hono app, answer two routes with text and with JSON, and export it so the runtime can call its fetch(), the way Cloudflare Workers, Bun and Deno do.

What you will learn

Read the theory for First steps

All Basics lessons

All Hono courses

loading types…

What you'll learn

  • See that a Hono app is a fetch handler: a Request in, a Response out, the same code on Cloudflare Workers, Bun, Deno, Node and in this tab
  • Register a route with app.get() and answer it with c.text() or c.json()
  • Export the app as the default export, which is what every runtime calls