Reusable c15t consent backend for projects that need one shared consent service.
- Cloudflare Workers
- c15t backend
2.1.0 - Drizzle ORM
- Turso/libSQL
| Command | Action |
|---|---|
pnpm install |
Install dependencies |
pnpm db:generate |
Generate Drizzle migrations |
pnpm db:migrate |
Apply migrations to configured Turso DB |
pnpm db:push |
Push schema directly for first setup only |
pnpm worker:dev |
Run Worker locally |
pnpm worker:dev:remote |
Run Worker on Cloudflare remote dev runtime |
pnpm worker:deploy |
Deploy Worker |
Copy .env.example to .env for Drizzle commands and .dev.vars for Wrangler local dev.
C15T_APP_NAME=consent
C15T_DATABASE_URL=libsql://your-database.turso.io
C15T_DATABASE_AUTH_TOKEN=your-turso-token
C15T_TRUSTED_ORIGINS=https://rxtsel.dev,http://localhost:4321
C15T_POLICY_SIGNING_KEY=replace-with-at-least-32-random-charactersC15T_TRUSTED_ORIGINS accepts comma-separated origins, so this service can be reused by several projects.
Frontend projects should point c15t hosted mode to:
https://your-consent-worker.example.com/api/c15tHealth/status endpoint:
https://your-consent-worker.example.com/api/c15t/status