How hakkul/exam_ta_v2 works
This repository combines a room-booking API on a Cloudflare Worker with an otherwise unconnected Vue/Vite starter screen. The principal API workflow covers room browsing and creation, booking submission and listing, and administrator approval or rejection; booking submissions are validated and start pending. The Worker uses a Drizzle adapter over D1, with room and booking tables defined in the schema. The sampled Vue component only renders starter content and a local counter, so no connection between it and the API is shown. The frontend and database behavior are described only to the extent supported by the sampled files.
Main entry points: db/index.ts Drizzle adapter · worker/index.ts HTTP routes · App.vue App shell · main.ts Vue mount
Components 13
Vue starter
- Vue mount
src/main.ts - App shell
src/App.vue - Starter view
src/components/HelloWorld.vue
Booking API
- HTTP routes
worker/index.ts - List rooms
worker/index.ts - Create room
worker/index.ts - List bookings
worker/index.ts - Submit booking
worker/index.ts - Review booking
worker/index.ts
Persistence
- Drizzle adapter
worker/db/index.ts - Room and booking tables
worker/db/schema.ts
Other components
- API client
- Cloudflare D1
Connections 15
- API client → HTTP routes: requests endpoints
worker/index.ts - Vue mount → App shell: mounts
src/main.ts - App shell → Starter view: renders
src/App.vue - HTTP routes → List rooms: routes
worker/index.ts - HTTP routes → Create room: routes
worker/index.ts - HTTP routes → List bookings: routes
worker/index.ts - HTTP routes → Submit booking: routes
worker/index.ts - HTTP routes → Review booking: routes
worker/index.ts - List rooms → Drizzle adapter: queries through
worker/index.ts - Create room → Drizzle adapter: inserts through
worker/index.ts - List bookings → Drizzle adapter: queries through
worker/index.ts - Submit booking → Drizzle adapter: inserts through
worker/index.ts - Review booking → Drizzle adapter: updates through
worker/index.ts - Drizzle adapter → Room and booking tables: configures schema
worker/db/index.ts - Drizzle adapter → Cloudflare D1: uses binding