Fantasy Premier League app built with Next.js (App Router), TailwindCSS, shadcn/ui, and Supabase.
- Framework: Next.js (App Router)
- Styling: Tailwind CSS + shadcn/ui (new-york style)
- Auth & DB: Supabase (supabase-ssr with cookie-based auth)
- Validation: Zod schemas for FPL API responses
- Icons: lucide-react
# Start Next.js dev server (uses remote Supabase)
npm run dev
# Start local Supabase + Next.js dev server
npm run dev:localnpm run db:start # Start local Supabase instance
npm run db:stop # Stop local Supabase instanceOnce running, Supabase Studio is available at localhost:54323.
# Create a new migration
npx supabase migration new <name>
# Reset local DB and re-run all migrations + seed
npm run db:reset
# Push migrations to remote Supabase
npx supabase db push
# Pull remote schema changes as a migration
npx supabase db pullThe seed file (supabase/seed.sql) creates three test accounts for local development:
| Password | Name | |
|---|---|---|
| alice@test.com | password123 | Alice Johnson |
| bob@test.com | password123 | Bob Smith |
| charlie@test.com | password123 | Charlie Davies |
These are only available when running against the local Supabase instance (after npm run db:start or npm run db:reset).