Commit ddca290
feat: add Todo API example project for Cloudflare Workers
Complete reference implementation demonstrating Nerva's Cloudflare Workers
deployment path with CRUD endpoints, D1 database, Zod validation, and
integration tests (15/15 passing).
- Hono REST API with middleware (CORS, security headers, request ID, ETag)
- Drizzle ORM with D1 (SQLite) schema and migration
- Zod request validation via @hono/zod-validator
- Vitest integration tests using Miniflare for real D1
- TypeScript strict mode with full Cloudflare Workers types
- README with setup, API docs, and deployment instructions
- Link added to main README Quick Start section
Closes #18
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f858fbe commit ddca290
23 files changed
Lines changed: 5606 additions & 0 deletions
File tree
- docs/plans
- examples/todo-api-cloudflare
- api
- migrations
- src
- db
- routes
- types
- tests
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments