v0.11_cloudflare_demo_o.mp4
A minimal cloudflare workers boilerplate to deploy a fully functional instance to Cloudflare Workers, using Cloudflare-only infrastructure:
Inside of your bknd project, you'll see the following folders and files:
/
├── src/
│ └── index.ts
├── package.json
└── wrangler.jsonc
To update bknd config, check src/index.ts.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server with watch at localhost:8787 |
npm run typegen |
Generates wrangler types |
npm run deploy |
Deploys the worker to Cloudflare |
You can either use the Deploy to Cloudflare button above (automatically configured), or deploy manually using npm run deploy.
npx wrangler d1 create my-databaseFeel free to check our documentation or jump into our Discord server.