This is a simple implementation written in TypeScript for Cloudflare Workers.
cp wrangler.example wrangler
npx wrangler d1 migrations apply aloy --local
pnpm dev
cp wrangler.example wrangler
npx wrangler d1 create aloy
# Update DATABASE_ID in wrangler.toml
npx wrangler d1 migrations apply aloy --remote
pnpm deploy
Command | Explanation |
---|---|
pnpm dev |
Run the development server |
pnpm test |
Run the tests |
pnpm test-coverage |
Run the tests with coverage |
pnpm build |
Build the project |