Skip to main content

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.

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

Clone the Repository

Clone the FemeSalud repository from GitHub and navigate into the project directory:
git clone https://github.com/KevxxAlva/femesalud-zen-flow.git
cd femesalud-zen-flow
2

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.
bun install
3

Configure Environment Variables

Create a .env file in the root of the project and add your Supabase credentials:
.env
VITE_SUPABASE_URL=https://your-project-ref.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=your-supabase-anon-key
You can find both values in your Supabase dashboard:
  1. Open app.supabase.com and select your project.
  2. Go to Project SettingsAPI.
  3. Copy the Project URL into VITE_SUPABASE_URL.
  4. Copy the anon / public key into VITE_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.
4

Run the Development Server

Start the local development server with:
bun run dev
Once the server is ready, open your browser and navigate to:
http://localhost:8080
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.
5

Build for Production

When you are ready to deploy, generate an optimized production build:
bun run 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:
bun run preview
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.

Build docs developers (and LLMs) love