Skip to content

ScriptedBro/chaotic-compliment-machine

Repository files navigation

Chaotic Compliment Crafter

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.

What this project is

  • Frontend: Vite + React + TypeScript. UI components live in src/components and pages are in src/pages.
  • Serverless function: a Supabase Edge Function is included under supabase/functions/generate-compliment.

Quickstart — run locally

  1. Install dependencies
npm install
  1. Start the dev server
npm run dev

This runs Vite in dev mode and serves the app at http://localhost:5173 by default.

  1. Build for production
npm run build
  1. Preview the production build locally
npm run preview

Notes

  • Linting: npm run lint (uses ESLint).
  • The Supabase client is configured in src/integrations/supabase/client.ts and types are in src/integrations/supabase/types.ts.
  • Main entry: src/main.tsx. Look at src/components for reusable UI pieces.

Development tips

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages