Skip to content

Jacob-A11/gidasvab-platform

Repository files navigation

GidASVAB React + Vercel version

This package removes Next.js and rebuilds the app as a plain React + Vite frontend with Vercel serverless API functions.

What this version covers

  • React frontend deployable to Vercel from Git
  • Stripe checkout redirect endpoint at /api/checkout
  • Stripe webhook endpoint at /api/stripe/webhook
  • Password reset flow on /reset-password
  • Billing confirmation polling on /billing/success
  • Supabase-backed plan persistence across devices
  • RLS migration in supabase/migrations/20260328_billing_and_rls.sql

Deploy on Vercel

  1. Push this project to GitHub
  2. Import the repo into Vercel
  3. Add the environment variables from .env.example
  4. Deploy

Vercel should detect the framework as Vite. The frontend builds to dist, and the /api directory contains Vercel functions.

Local development

npm install
npm run dev

Important setup

You must configure:

  • Supabase redirect URLs:
    • https://your-domain.com/auth/callback
    • https://your-domain.com/reset-password
  • Stripe webhook endpoint:
    • https://your-domain.com/api/stripe/webhook
  • Stripe Payment Link success URLs:
    • https://your-domain.com/billing/success?plan=standard
    • https://your-domain.com/billing/success?plan=premium

The password reset flow depends on Supabase redirect configuration. The webhook depends on real Stripe secrets and price IDs.

note: no package-lock.json included on purpose; let Vercel install fresh from npm registry.

About

AI-powered ASVAB prep platform built with React, Supabase, Stripe, and Vercel, featuring secure auth, subscription billing, recruiter access, and progress tracking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors