Starter template for AI-assisted web projects with Vite, React, Tailwind, Shadcn UI, and Supabase. Designed to keep setup fast and token-light while still supporting local vs production database workflows.
- Vite + React + TypeScript
- Tailwind CSS + Shadcn UI primitives
- Supabase (auth + data)
- Vitest + Testing Library
- ESLint + Prettier
This template uses Vite modes to switch environments.
- Copy the env templates:
- .env.development.example -> .env.development
- .env.production.example -> .env.production
- Local dev (default):
npm run dev
- Dev against production:
- Ensure
VITE_ALLOW_PROD=truein .env.production npm run dev:prod
- Ensure
Local database keeps your testing data off production and lets you evolve schema safely.
- Local stack:
npm run supabase:start - Reset local DB (apply migrations):
npm run supabase:db:reset - Push migrations to production:
ALLOW_PROD_DB_PUSH=true npm run supabase:db:push
See supabase/README.md for details.
The template includes a tiny data layer to keep Supabase queries out of components:
- Install deps:
npm install - Configure env files
- Start dev server:
npm run dev
npm run dev- local dev modenpm run dev:prod- dev mode using production Supabase envnpm run build- production buildnpm run test- run testsnpm run lint- lint codenpm run format- format code