Skip to content

andrebruch/durable-objects-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

👷 Durable Objects template

A template for kick-starting a Cloudflare Workers project that uses Durable Objects.

This template is meant to be the simplest way to get started with Durable Objects, for developers who just want to be able to write some code without worrying about a JavaScript bundler. If you want to be able to bundle dependencies alongside your code, you're better off starting with one of the other Durable Objects templates:

Worker code is in src/. The normal fetch handler and the Durable Object Counter class are in src/index.mjs.

Wrangler is configured to upload all files in the src/ directory, and index.mjs is configured to be the main module.

On your first publish, you must use wrangler publish --new-class Counter to allow the Counter class to implement Durable Objects.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%