This is a Durable Object starter template. It comes with a sayHello method that returns Hello World!.
Outside of this repo, you can start a new project with this template using C3 (the create-cloudflare CLI):
npm create cloudflare@latest -- --template=cloudflare/templates/hello-world-do-templateFirst, run:
npm install
# or
yarn install
# or
pnpm install
# or
bun installThen run the development server (using the package manager of your choice):
npm run devOpen http://localhost:8787 with your browser to see the result.
You can start editing the project by modifying src/index.ts.
| Command | Action |
|---|---|
npm run deploy |
Deploy your application to Cloudflare |
To learn more about Next.js, take a look at the following resources:
- Durable Objects - learn about Durable Objects
Your feedback and contributions are welcome!