A serverless, real-time Salon Management system powered entirely by Supabase.
- Frontend: Next.js 15 + Tailwind CSS + Framer Motion.
- Database: Supabase PostgreSQL (Real-time enabled).
- Backend: Supabase Edge Functions (Replace the need for local Python APIs).
- Go to your Supabase SQL Editor.
- Run the SQL script provided in our conversation (creates 12 tables).
- Ensure your
.envin thefrontendfolder has your Supabase URL and Anon Key. - Run:
cd frontend npm install npm run dev - Open http://localhost:3000.
Your Voice Agent (Vapi/Retell) needs a live URL. We use Supabase Edge Functions.
- Install Supabase CLI:
npm install supabase --save-dev - Link your project:
npx supabase link --project-ref [YOUR_PROJECT_REF] - Deploy the function:
npx supabase functions deploy voice-agent
- URL to give your Voice Agent:
https://[YOUR_PROJECT_REF].supabase.co/functions/v1/voice-agent
The deployed function supports these payloads:
action: "get_context": Fetch customer history.action: "book_appointment": Create a new booking.action: "log_call": Log a transcript to the dashboard.
/frontend: All UI and Real-time logic./supabase/functions/voice-agent: The "Brain" for your Voice Agents.