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-template
First, run:
npm install
# or
yarn install
# or
pnpm install
# or
bun install
Then run the development server (using the package manager of your choice):
npm run dev
Open 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!