Skip to content

bknd-io/bknd-cloudflare-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bknd: Quick deploy to Cloudflare Workers

Deploy to Cloudflare

v0.11_cloudflare_demo_o.mp4

A minimal cloudflare workers boilerplate to deploy a fully functional instance to Cloudflare Workers, using Cloudflare-only infrastructure:

  • Worker as compute
  • D1 as the database
  • R2 bucket as storage
  • waitUntil for async event handlers

Project Structure

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.

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
npm run deploy Deploys the worker to Cloudflare

Deployment

You can either use the Deploy to Cloudflare button above (automatically configured), or deploy manually using npm run deploy.

npx wrangler d1 create my-database

Want to learn more?

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published