diff --git a/examples/batcher/README.md b/examples/batcher/README.md index cc58e96..3ad1a60 100644 --- a/examples/batcher/README.md +++ b/examples/batcher/README.md @@ -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 ``` + diff --git a/examples/chat/README.md b/examples/chat/README.md index cc58e96..7a7742d 100644 --- a/examples/chat/README.md +++ b/examples/chat/README.md @@ -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 ``` diff --git a/examples/counter-with-storage-helper/README.md b/examples/counter-with-storage-helper/README.md index cc58e96..d7339c9 100644 --- a/examples/counter-with-storage-helper/README.md +++ b/examples/counter-with-storage-helper/README.md @@ -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 ``` diff --git a/examples/counter/README.md b/examples/counter/README.md index cc58e96..2a8cd4a 100644 --- a/examples/counter/README.md +++ b/examples/counter/README.md @@ -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 ``` diff --git a/examples/hibernatable-chat/README.md b/examples/hibernatable-chat/README.md index cc58e96..ed4c099 100644 --- a/examples/hibernatable-chat/README.md +++ b/examples/hibernatable-chat/README.md @@ -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 ```