This guide walks you through getting FemeSalud running on your local machine from scratch. By the end you will have a fully functional development server connected to your own Supabase project and ready for customization. Before you start, make sure you have Node.js 18+ or Bun 1.0+ installed, and a free Supabase account ready to go.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevxxAlva/femesalud-zen-flow/llms.txt
Use this file to discover all available pages before exploring further.
Clone the Repository
Clone the FemeSalud repository from GitHub and navigate into the project directory:
Install Dependencies
Install all project dependencies. Bun is strongly recommended for its significantly faster install and build times, but npm and pnpm are fully supported.
Configure Environment Variables
Create a You can find both values in your Supabase dashboard:
.env file in the root of the project and add your Supabase credentials:.env
- Open app.supabase.com and select your project.
- Go to Project Settings → API.
- Copy the Project URL into
VITE_SUPABASE_URL. - Copy the
anon/publickey intoVITE_SUPABASE_PUBLISHABLE_KEY.
The
VITE_ prefix is required. Vite injects these values at build time for client-side access via import.meta.env. The app also reads SUPABASE_URL and SUPABASE_PUBLISHABLE_KEY (without the prefix) for server-side middleware. See Environment Setup for the full variable reference.Run the Development Server
Start the local development server with:Once the server is ready, open your browser and navigate to:The dev server supports Hot Module Replacement (HMR) — any changes you make to source files will be reflected in the browser instantly without a full page reload.
Build for Production
When you are ready to deploy, generate an optimized production build:This command bundles the application and outputs Serverless Function artifacts to the
.vercel/output/ directory, ready for deployment to Vercel. The build uses the Nitro vercel preset defined in vite.config.ts.To preview the production build locally before deploying, run:The development server alone is not enough for a fully working application — your Supabase project also needs the correct database schema, RLS policies, storage bucket, and an initial admin user. Head to the Environment Setup guide for complete instructions on preparing your Supabase project.