Skip to content

Commit

Permalink
chore(example): update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sor4chi committed Dec 1, 2023
1 parent 547c338 commit 7661f40
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 25 deletions.
12 changes: 7 additions & 5 deletions examples/batcher/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
```
npm install
npm run dev
```
# Hono DO Batcher

This example is a batcher using Durable Object's Alarm API.
The code is based on [Cloudflare's Alarm example](https://developers.cloudflare.com/durable-objects/api/alarms-in-durable-objects).

```
npm run deploy
pnpm install
pnpm dev
```

12 changes: 7 additions & 5 deletions examples/chat/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
```
npm install
npm run dev
```
# Hono DO Chat

This example is a simple chat app. Save sessions to in-memory map.
If you want to make strict to hibernate, you can see [examples/hibernatable-chat](../hibernatable-chat).


```
npm run deploy
pnpm install
pnpm dev
```
11 changes: 6 additions & 5 deletions examples/counter-with-storage-helper/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
```
npm install
npm run dev
```
# Hono DO Counter (with Storage Helper)

This example is a counter app with storage helper.
[Counter example](../counter)'s rewrite with storage helper.

```
npm run deploy
pnpm install
pnpm dev
```
12 changes: 7 additions & 5 deletions examples/counter/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
```
npm install
npm run dev
```
# Hono DO Counter

This example is a simple counter app.
The code is based on [Cloudflare's Counter example](https://developers.cloudflare.com/durable-objects/examples/build-a-counter/).


```
npm run deploy
pnpm install
pnpm dev
```
11 changes: 6 additions & 5 deletions examples/hibernatable-chat/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
```
npm install
npm run dev
```
# Hono DO Chat (hibernatable)

This example is a hibernatable chat app.
The code using [Hibernate Websocket API](https://developers.cloudflare.com/durable-objects/learning/websockets/#websocket-hibernation) for hibernation of Durable Objects.

```
npm run deploy
pnpm install
pnpm dev
```

0 comments on commit 7661f40

Please sign in to comment.