A modern React + Vite application with Supabase authentication and Tailwind CSS styling.
- ⚡ Vite - Fast build tool and development server
- ⚛️ React 18 with TypeScript
- 🔐 Supabase Authentication - Email/password authentication
- 🎨 Tailwind CSS - Modern UI with white gradient theme
- 🛣️ React Router - Client-side routing
- 🏗️ Professional Structure - Organized codebase with separation of concerns
src/
├── components/ # Reusable UI components
│ └── ProtectedRoute.tsx
├── contexts/ # React contexts
│ └── AuthContext.tsx
├── hooks/ # Custom React hooks
├── pages/ # Page components
│ ├── Login.tsx
│ ├── SignUp.tsx
│ └── Dashboard.tsx
├── utils/ # Utility functions
│ └── supabase.ts
└── assets/ # Static assets
Create a .env file in the root directory and add your Supabase credentials:
VITE_SUPABASE_URL=your_supabase_url_here
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key_hereYou can find these values in your Supabase project dashboard under Settings > API.
npm installnpm run devThe application will be available at http://localhost:5173/
npm run build- Sign Up (
/signup) - New users can create an account with email and password - Login (
/login) - Existing users can sign in - Dashboard (
/dashboard) - Protected route accessible only to authenticated users - Auto-redirect - Unauthenticated users are redirected to login page
- Create a new project at supabase.com
- Go to Authentication > Settings and configure:
- Enable email authentication
- Configure email templates (optional)
- Set up custom SMTP (optional)
- Copy your project URL and anon key to the
.envfile
The application uses a modern AI-related design with:
- White gradient backgrounds
- Clean, minimalist UI
- Indigo accent colors
- Responsive design with Tailwind CSS
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
- React 18.3.1
- TypeScript 5.5.3
- Vite 7.1.5
- Supabase for authentication and backend
- React Router 6.x for routing
- Tailwind CSS for styling
- ESLint for code linting
MIT License