Skip to main content

RedwoodJS on Cloudflare Example

This example demonstrates deploying a RedwoodJS full-stack application to Cloudflare with D1 database integration.

Features

  • RedwoodJS: Full-stack React framework
  • D1 Database: SQLite database at the edge
  • Drizzle Migrations: Type-safe database schema
  • Local Development: Integrated dev server

Project Setup

Key Features Explained

D1 Database with Migrations

D1 supports SQL migrations from a directory:

Database Bindings

The database is bound to your Redwood application:

Local Development

Integrated with Redwood’s dev server:

Database Operations

Query Data

Insert Data

Update Data

Source Code

View the complete source code: examples/cloudflare-redwood