Modern React starter template with Supabase authentication, featuring:
- ⚡ Vite
- ⚛️ React 19
- 📘 TypeScript 5.8
- 🎨 Tailwind CSS v4
- 🔒 Supabase Auth
- 🚦 React Router v7
- 📊 TanStack Query
- 🐻 Zustand
- 🎯 Protected Routes
- 🌙 Dark Mode
- Clone the repository:
git clone [repository-url]
cd vite-starterkit-supabase-auth- Install dependencies:
bun install
# or
npm install- Configure environment variables:
cp .env.example .env.localThen edit .env.local with your Supabase credentials.
- Start the development server:
bun dev
# or
npm run dev- Create a new Supabase project
- Enable Email auth in Authentication settings
- Create your database tables
- Copy your project URL and anon key to
.env.local
src/
├── components/ # UI components
├── hooks/ # Custom hooks
├── lib/ # Utilities and configurations
├── pages/ # Route pages
├── store/ # Zustand stores
└── router/ # Route definitions
- 🔒 Authentication with Supabase
- 🛡️ Protected routes
- 🎯 Type-safe API calls
- 🎨 Styled with Tailwind and shadcn/ui
- 📱 Responsive layout
- 🌙 Dark mode support
MIT