- Runtime: Cloudflare Worker
- Language: TypeScript
- RPC Framework: Cloudflare WorkerEntrypoint
- Install dependencies:
bun install
This worker requires the following bindings and secrets to function properly:
These are configured in the wrangler.jsonc file.
Deploy to Cloudflare:
bun run deployThis worker uses Cloudflare D1 with Drizzle ORM for database operations.
- Schema definition:
src/api/db/schema.ts
To work with the database:
- Use Drizzle Studio to visualize and manage your local database during development
- All database changes should be made through the Drizzle ORM schema file (
src/api/db/schema.ts) - To generate migrations, run
bun run generate
This project includes unit tests for the PDF generation service. To run the tests:
bun testOr directly with vitest:
bun run test