Developer Setup

Integration
setup guide.

Five steps to go live. Do these in order — each one enables the next.

Required integrations
🗆
1. Supabase — Auth + Database
User accounts, plan management, audit storage
  1. Go to supabase.com → New project → copy your Project URL and anon public key
  2. Enable Email Auth under Authentication → Providers
  3. SQL Editor → run: CREATE TABLE users (id uuid PRIMARY KEY DEFAULT gen_random_uuid(), email text UNIQUE, plan text DEFAULT 'free', first_name text, last_name text, created_at timestamptz DEFAULT now());
  4. Insert admin: INSERT INTO users (email, plan) VALUES ('tamblinmitchell@gmail.com', 'admin');
  5. Paste both keys into Admin → API Keys → Save
💳
2. Stripe — Payments
Audit purchases + Standard plan subscriptions
  1. Go to stripe.com → Dashboard → Developers → API Keys
  2. Create product: Standard Plan → Recurring → $49 AUD/month → add trial_period_days: 7 (this is your "first audit included" trial)
  3. Create product: Homepage Audit → One-time → $1.99 AUD
  4. Add both keys in Admin → API Keys
  5. Set webhook endpoint: your domain + /api/stripe-webhook → listen for customer.subscription.updated and invoice.paid
💌
3. Resend — Transactional Email
Audit delivery, welcome emails, billing notices
  1. Create account at resend.com → API Keys → Create
  2. Add domain reviostudio.com → verify DNS records in your registrar
  3. In Supabase: Authentication → Providers → Email → Custom SMTP → host: smtp.resend.com, port: 587, user: resend, pass: your Resend API key
  4. Add Resend key in Admin → API Keys
🤖
4. Anthropic — Aria AI Chat
Powers the bottom-right chat assistant on every page
  1. Get API key from console.anthropic.com
  2. Paste in Admin → API Keys → Anthropic → Save → Aria activates immediately
  3. For production security, proxy through a Supabase Edge Function to keep the key server-side
5. Deploy
  1. Upload all HTML files to Netlify or Vercel (drag-and-drop the folder)
  2. Point domain reviostudio.com DNS to your host (Netlify/Vercel provide the A record)
  3. Set Stripe webhook endpoint to your live domain
  4. Add Google Analytics ID in Admin → API Keys → Google Analytics
  5. Test: sign up → confirm email → sign in → redirects to dashboard.html ✓
  6. Test admin: sign in as tamblinmitchell@gmail.com → redirects to admin.html ✓