Skip to main content

Prerequisites

Node.js 18+

Required for wrangler CLI

Cloudflare account

Free tier is sufficient for development

Go 1.26+

Required to run the backend API locally

Python 3.11+

Required for the CLI and security helpers

1. Clone the repository

2. Install Wrangler

3. Authenticate with Cloudflare

This opens a browser window - log in and authorise the OAuth token. No account_id needs to be set in wrangler.jsonc; wrangler reads it from the OAuth session.

4. Create the R2 bucket (one-time)

If the bucket already exists you will see a warning - that is fine.

5. Configure the Worker

Edit cloudflare/wrangler.jsonc if you want to change the worker name or add custom domains. The default config works out of the box.

6. Deploy the Worker

After deployment you should see:

7. Configure the backend API

Copy the example env file:
Fill in the required values:

8. Run the backend locally

The API will be available at http://localhost:8000.

Verification

Next steps

Monitoring

Watch live Worker logs

Troubleshooting

Common deployment issues