- Node.js (v18 or higher recommended)
- npm (v9 or higher recommended)
- A Supabase account with a project set up
- Create a
.envfile in the root directory with the following variables:VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key - Make sure these values match your Supabase project settings.
-
Install dependencies:
npm install -
Start the development server:
npm run dev -
The application should be available at
http://localhost:5173/
- Check browser console for errors
- Verify that your
.envfile exists and contains the correct Supabase credentials - Try clearing browser cache and local storage
- Ensure you're using a compatible Node.js version (v18+)
- Try running with the
--forceflag:npm install --force
- Verify your Supabase project is active
- Check that your anon key has the necessary permissions
- Ensure your IP is not blocked by Supabase
- Try creating a new API key if issues persist
- Check browser console for errors
- Verify network requests in the Network tab
- Clear browser cache and local storage
- Try a different browser
This project is set up for automatic deployment to Netlify:
- Connect your GitHub repository to Netlify
- Netlify will automatically build and deploy from the
masterbranch - Build settings are configured in
netlify.toml
Add the following environment variables in Netlify:
VITE_SUPABASE_ANON_KEY: Supabase anonymous keyVITE_SUPABASE_URL: Supabase project URL
- Build Command:
npm run build - Publish Directory:
dist - Node Version: 20
To create a production build locally:
npm run build
The build output will be in the dist directory, which can be served by any static file server.
To preview the production build locally:
npm run preview
npm run dev- Start development servernpm run build- Create production buildnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run test- Run Jest testsnpm run test:watch- Run Jest tests in watch modenpm run test:coverage- Run Jest tests with coverage reportnpm run format- Format code with Prettier