Skip to content

Mangotec333/Storeys

Repository files navigation

Storeys.io

Landing page for Storeys LLC — Healthcare CRE acquisitions and growth partnerships.

Domain: storeys.io

Run locally

python3 -m http.server 8000
# or: npx serve .

Open http://localhost:8000

Supabase setup

1. Create project & table

  1. Create project at supabase.com
  2. Run migrations in SQL Editor:
    • supabase/migrations/001_create_leads.sql
    • supabase/migrations/002_add_evaluation_data.sql
    • supabase/migrations/003_add_email_tracking.sql

2. Config

Copy src/config.example.js to src/config.js and add your Supabase URL and anon key.

3. Edge Function (verification email)

# Install Supabase CLI, then:
supabase functions deploy send-verification

Set secrets in Supabase DashboardEdge FunctionsSecrets:

Secret Description
RESEND_API_KEY From resend.com (free tier)
SITE_URL https://storeys.io (or your domain)
FROM_EMAIL Storeys <verify@storeys.io> (verify domain in Resend)

4. Email tracking (optional)

Deploy the webhook to track delivered/opened/clicked:

supabase functions deploy email-webhook

In Resend DashboardWebhooks → Add endpoint:

  • URL: https://cuqocomseehkfrmzygpc.supabase.co/functions/v1/email-webhook
  • Events: email.delivered, email.opened, email.clicked

5. Flow

  • Continue → Saves lead to Supabase (insert on step 1, update on 2–4)
  • Get My Valuation → Sends verification email via Edge Function, stores resend_email_id
  • Verify linkverify.html?token=... marks email_verified_at
  • Webhook → Updates email_delivered_at, email_opened_at, email_clicked_at in leads

Deploy

  • Vercel / Netlify: Connect repo, build command: none, output: root

Troubleshooting: Email not received

  1. Edge Function deployed? Run supabase functions deploy send-verification
  2. RESEND_API_KEY set? Supabase Dashboard → Edge Functions → Secrets
  3. Check Resend Dashboard → Emails — see if the email was sent, delivered, or bounced
  4. Spam folder — verification emails from onboarding@resend.dev may land in spam
  5. Verify domain — Add storeys.io in Resend and use verify@storeys.io as FROM_EMAIL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors