Files
bknd/examples/cloudflare-worker
dswbx 3f26c45dd9 refactored adapters to run test suites (#126)
* refactored adapters to run test suites

* fix bun version for tests

* added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
2025-04-01 11:43:11 +02:00
..
2024-11-16 12:01:47 +01:00
2024-11-16 12:01:47 +01:00
2024-11-16 12:01:47 +01:00

bknd starter: Cloudflare Workers

A minimal Node.js project with bknd integration.

Project Structure

Inside of your Node.js project, you'll see the following folders and files:

/
├── src/
│   └── index.ts
├── package.json
└── wrangler.json

To update bknd config, check src/index.ts.

Commands

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

Before you deploy

If you're using a D1 database, make sure to create a database in your cloudflare account and replace the database_id accordingly in wrangler.json.

npx wrangler d1 create my-database

Want to learn more?

Feel free to check our documentation or jump into our Discord server.