Leadership-Legacy-Startup-Agency-Website

Leadership Suite - Quick Start Guide

Get the Leadership Suite running in minutes with Cloudflare.

πŸš€ Fastest Way to Deploy

Prerequisites

1-Minute Setup

# Clone and install
git clone <your-repo-url>
cd leadership-legacy
npm install

# Install Wrangler CLI
npm install -g wrangler

# Login to Cloudflare
wrangler login

Database Setup (2 minutes)

# Create D1 database
wrangler d1 create leadership-legacy-db

# Update wrangler.toml with the database ID from output

# Run migrations
wrangler d1 execute leadership-legacy-db --file=./schema/schema.sql
wrangler d1 execute leadership-legacy-db --file=./migrations/0002_create_suite_schema.sql
wrangler d1 execute leadership-legacy-db --file=./migrations/0003_insert_demo_user.sql

R2 Storage Setup (1 minute)

# Create R2 bucket
wrangler r2 bucket create leadership-legacy-assets

Deploy Everything (2 minutes)

# Deploy with one command
./deploy-suite.sh

# Or manually:
wrangler deploy                    # Deploy Worker (API)
npm run build                      # Build Next.js
npx wrangler pages deploy out --project-name=leadership-legacy

Access Your Suite

  1. Visit the Pages URL shown in the deploy output
  2. Navigate to /suite
  3. Login with demo user credentials (auto-configured)

🏠 Local Development

# Start both servers
./scripts/dev-local.sh

# Or manually in separate terminals:
Terminal 1: wrangler dev --port 8787
Terminal 2: npm run dev

πŸ“± Test All Features

Documents

Sheets

Slides

Drive

Photos

Calendar

Mail

Meet

Tasks

🎨 Customization

Branding

Edit src/app/globals.css for colors and themes.

Add Authentication

See SUITE_DEPLOYMENT_GUIDE.md for auth integration.

Custom Domain

Configure in Cloudflare Pages dashboard.

πŸ› Troubleshooting

API calls return 404

Database errors

File uploads fail

πŸ“š Next Steps

  1. Security: Add authentication (Cloudflare Access, Auth0)
  2. Analytics: Enable Cloudflare Web Analytics
  3. Monitoring: Set up Workers Analytics
  4. Custom Domain: Configure in Pages settings
  5. Rate Limiting: Add Worker rate limiting

πŸŽ‰ You’re Done!

Your Leadership Suite is now live on Cloudflare’s global network with:

πŸ’‘ Tips

πŸ†˜ Need Help?


Built with ❀️ using Cloudflare Workers, Pages, D1, and R2