This guide walks you through everything needed to run FerreMarket on your local machine. By the end you will have the development server up atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ProyectoFerretek/FerreMarket/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:5173, a working Supabase connection, and a user account you can sign in with — ready to explore every module of the admin panel.
Prerequisites
Make sure the following are installed and available on your machine before you begin:
- Node.js v16 or higher — check with
node --version - npm v8 or higher — check with
npm --version - A Supabase project — create one for free at supabase.com. You will need the project URL and the
anonpublic key from Project Settings → API. - A Cloudflare account with:
- An R2 bucket configured with public access enabled (used to serve product images)
- A deployed Cloudflare Worker that accepts authenticated upload requests and writes to the R2 bucket
Clone the repository
Clone the FerreMarket repository from GitHub and move into the project directory:
Install dependencies
Install all required packages with npm. This includes React, Supabase client, Recharts, Lucide icons, React Router, react-hot-toast, and jsPDF (along with jspdf-autotable for invoice table formatting) — all already declared in Verify the install completed without errors and that a
package.json.node_modules directory was created in the project root.Create the .env file
Copy the included environment template to a new Open
See the Configuration page for a full description of every variable and detailed setup instructions for each service.
.env file at the project root:.env in your editor and fill in each variable. The file contains seven variables across three service groups:| Variable | Where to find it |
|---|---|
VITE_AUTH0_DOMAIN_NAME | Auth0 Dashboard → Applications → your app → Domain |
VITE_AUTH0_CLIENT_ID | Auth0 Dashboard → Applications → your app → Client ID |
VITE_SUPABASE_URL | Supabase Dashboard → Project Settings → API → Project URL |
VITE_SUPABASE_ANON_KEY | Supabase Dashboard → Project Settings → API → anon public key |
VITE_CLOUDFLARE_CDN_URL | Cloudflare Dashboard → R2 → your bucket → Public bucket URL |
VITE_CLOUDFLARE_WORKERS_URL | Cloudflare Dashboard → Workers & Pages → your worker → Routes |
VITE_CLOUDFLARE_WORKERS_API_KEY | The secret API key you set inside your Worker’s environment variables |
Start the dev server
Launch the Vite development server:Vite will print output similar to:Open
http://localhost:5173 in your browser to see the FerreMarket landing page.Next Steps
Configuration Reference
Deep-dive into every environment variable — Supabase, Cloudflare R2, Workers, and Auth0 — with step-by-step setup instructions for each service.
Dashboard Module
Learn how the Dashboard module surfaces key business metrics, renders Recharts graphs, and gives managers a live overview of store activity.