Skip to content

Getting Started

This guide walks you through deploying PixelFlare to Cloudflare.

Prerequisites

  • Cloudflare account (free tier works, Pro recommended for image resizing)
  • Domain added to Cloudflare
  • GitHub account (for OAuth)
  • Node.js 18+ and pnpm installed
  • Terraform 1.5+ (for infrastructure)

Deployment Options

Terraform automates most of the setup. See Terraform Setup for the full guide.

bash
# Clone the repo
git clone https://github.com/lissy93/pixelflare.git
cd pixelflare/terraform

# Configure
cp terraform.tfvars.example terraform.tfvars
# Edit terraform.tfvars with your values

# Deploy infrastructure
terraform init
terraform apply

Then complete the manual steps.

Option 2: Manual Setup

If you prefer manual control:

  1. Create R2 bucket, D1 database, and KV namespace in Cloudflare dashboard
  2. Set up Cloudflare Access with GitHub identity provider
  3. Configure wrangler.toml with resource IDs
  4. Deploy the Worker and Pages project

Quick Local Development

Want to try it locally first?

bash
# Clone and install
git clone https://github.com/lissy93/pixelflare.git
cd pixelflare
pnpm install

# Set up local environment
pnpm setup:local

# Start development servers
pnpm dev:all

Open http://localhost:5173 - you're running PixelFlare locally!

See Local Development for details.

Next Steps

Released under the MIT License.