A small, playful web app that generates unexpectedly delightful (and chaotic) compliments. Built with Vite + React + TypeScript and the shadcn/ui component primitives. The project includes a Supabase function used to generate compliments server-side.
- Frontend: Vite + React + TypeScript. UI components live in
src/componentsand pages are insrc/pages. - Serverless function: a Supabase Edge Function is included under
supabase/functions/generate-compliment.
- Install dependencies
npm install- Start the dev server
npm run devThis runs Vite in dev mode and serves the app at http://localhost:5173 by default.
- Build for production
npm run build- Preview the production build locally
npm run preview- Linting:
npm run lint(uses ESLint). - The Supabase client is configured in
src/integrations/supabase/client.tsand types are insrc/integrations/supabase/types.ts. - Main entry:
src/main.tsx. Look atsrc/componentsfor reusable UI pieces.
- If the dev server doesn't start, ensure Node.js is installed (v18+ recommended) and you have a working internet connection for initial installs.
- To test the Supabase function locally, use the Supabase CLI or deploy the function to your Supabase project.
If you'd like, I can also add a short usage section, screenshots, or contributor guidelines.