Skip to content

Commit ddca290

Browse files
Paul Mulliganclaude
andcommitted
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

.lychee.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ exclude = [
2929
"https://img.shields.io/.*",
3030
# Contributor Covenant — blocks/resets automated requests
3131
"https://www.contributor-covenant.org/.*",
32+
# Claude (Anthropic) — bot-protected, returns 403 to automated checks
33+
"https://claude.ai/.*",
3234
# Example/placeholder URLs
3335
"https://example.com.*"
3436
]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ pnpm install
4242
cd api && pnpm dev
4343
```
4444

45+
> **New to Nerva?** See the [Todo API example](examples/todo-api-cloudflare/) for a complete working Cloudflare Workers project with CRUD, D1, Zod validation, and tests.
46+
4547
## Pipelines
4648

4749
### Schema-to-API (Autonomous)

0 commit comments

Comments
 (0)