cloudflare-workers/examples/durable-object-counter
2023-04-29 18:30:15 +09:00
..
2023-02-21 18:46:22 +01:00
2023-02-21 18:46:22 +01:00
2023-02-21 18:46:22 +01:00
2023-02-21 18:46:22 +01:00
2023-02-21 18:46:22 +01:00
2023-02-21 18:46:22 +01:00
2023-04-29 18:30:15 +09:00
2023-02-21 18:46:22 +01:00

durable object counter

This app is an exmaple of using a stub to access a direct object. The example is based on the cloudflare/durable-object-template repository.

The durable object is written in js; only the stub is called from go!

Demo

After make publish the trigger is http://durable-object-counter.YOUR-DOMAIN.workers.dev

Development

Requirements

This project requires these tools to be installed globally.

  • wrangler
  • tinygo

Commands

make dev     # run dev server
make build   # build Go Wasm binary
make publish # publish worker

Author

akarasz

License

MIT