Skip to content

rxtsel/consent

Repository files navigation

consent

Reusable c15t consent backend for projects that need one shared consent service.

Stack

  • Cloudflare Workers
  • c15t backend 2.1.0
  • Drizzle ORM
  • Turso/libSQL

Commands

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

Environment

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-characters

C15T_TRUSTED_ORIGINS accepts comma-separated origins, so this service can be reused by several projects.

Endpoint

Frontend projects should point c15t hosted mode to:

https://your-consent-worker.example.com/api/c15t

Health/status endpoint:

https://your-consent-worker.example.com/api/c15t/status

Runbooks

About

c15t backend for Cloudflare Workers

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors