mirror of
https://github.com/honojs/hono.git
synced 2024-11-24 11:07:29 +01:00
Update readme
This commit is contained in:
parent
fbafc6e360
commit
4bc2d12d55
29
README.md
29
README.md
@ -1,4 +1,31 @@
|
||||
## hono
|
||||
# hono
|
||||
|
||||
Minimal web framework for Cloudflare Workers.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ yarn add hono
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
$ npm install hono
|
||||
```
|
||||
|
||||
## Hello hono!
|
||||
|
||||
```js
|
||||
const Hono = require("hono");
|
||||
const app = Hono();
|
||||
|
||||
app.get("/", () => new Response("Hono!!"));
|
||||
|
||||
app.fire(); // call `addEventListener`
|
||||
```
|
||||
|
||||
Then, run `wrangler dev`.
|
||||
|
||||
## Author
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user