Skip to content

Bootstrap API: Hono + D1 push notification MVP#1

Open
jonmumm wants to merge 6 commits intomainfrom
feat/bootstrap-api
Open

Bootstrap API: Hono + D1 push notification MVP#1
jonmumm wants to merge 6 commits intomainfrom
feat/bootstrap-api

Conversation

@jonmumm
Copy link
Copy Markdown
Member

@jonmumm jonmumm commented Mar 12, 2026

Summary

  • Scaffolds the Cloudflare Worker project with Hono framework, TypeScript, and D1 database
  • Implements device registration endpoint (POST /api/v1/devices/register) and notification send endpoint (POST /api/v1/notifications/send)
  • Adds API key auth middleware, D1 schema (devices + api_keys tables), and stubbed APNs/FCM push providers
  • Creates the opengame-api-db D1 database (ID: cec599e8-e064-4034-b035-3d97ed3b222c)

Test plan

  • Run npm run dev and hit GET /api/v1/health to verify worker starts
  • Test device registration with a POST to /api/v1/devices/register
  • Insert a test API key into D1, then test notification send with auth
  • Run npm run typecheck to confirm no type errors
  • Deploy to Cloudflare with npm run deploy

🤖 Generated with Claude Code

AI Feature Agent and others added 6 commits March 12, 2026 00:16
Sets up the full project structure with device registration, notification
sending (with stubbed APNs/FCM providers), API key auth middleware, and
D1 schema for devices and api_keys tables.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add GitHub Actions CI workflow (lint, typecheck, test) on push/PR to main
- Add GitHub Actions deploy workflow using wrangler on push to main
- Add vitest with tests for health, device registration, and notification endpoints (10 tests)
- Add lint and test scripts to package.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The lock file was generated on macOS and was missing resolved entries for
Linux platform packages (@esbuild/linux-*), causing `npm ci` to fail in
CI (ubuntu-latest). Regenerated to include all platform optional deps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
wrangler 3.x bundled esbuild 0.17.19 which conflicted with vitest's
requirement for esbuild 0.27.x, causing npm ci to fail in CI.
Upgrading wrangler to v4 resolves the esbuild version conflict.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds project overview, architecture diagrams, conventions, build
commands, and lessons learned following the escuchame-swift pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant