Manage your to-do list with Cloudflare Workers Assets + Remix + Cloudflare Workers KV.
This is a simple to-do list app that allows you to add, remove, and mark tasks as complete. The project is a Cloudflare Workers Assets application built with Remix. It uses Cloudflare Workers KV to store the to do list items. The Remix Vite Plugin has a Cloudflare Dev Proxy that enables you to use Bindings provided by the Cloudflare Developer Platform. Observability is on by default.
Important
When using C3 to create this project, select "no" when it asks if you want to deploy. You need to follow this project's setup steps before deploying.
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/to-do-list-kv-templateA live public deployment of this template is available at https://to-do-list-kv-template.templates.workers.dev
- Install the project dependencies with a package manager of your choice:
npm install
- Create a kv namespace with a binding named "TO_DO_LIST":
...and update the
npx wrangler kv namespace create TO_DO_LIST
kv_namespaces->idfield inwrangler.jsonwith the new namespace ID. - Build the application:
npm run build
- Deploy it!
npx wrangler deploy
- And monitor your worker!
npx wrangler tail