Cloudflare

Going originless with Cloudflare Workers – Building a Todo app – Part 1: The API

Sep 21, 2022Kabir Sikand
Going originless with Cloudflare Workers – Building a Todo app – Part 1: The API
SummaryAI, from the source post

This post introduces the use of Custom Domains for Cloudflare Workers, enabling originless applications. It details the architecture for a todo list API, comprising a gateway Worker, individual Workers for CRUD operations (list, create, get, update, delete), and D1 database bindings for persistence. The post provides code examples for D1 database setup and schema, individual endpoint Worker implementations, and the API gateway Worker's routing logic. It also demonstrates the `wrangler.toml` configuration for D1 bindings and Service Bindings to connect the gateway to endpoint Workers, and the deployment process using `wrangler publish`.

More from the Edge Computing with Cloudflare Workers trail