This guide walks you through a complete local setup — from cloning the repository to logging in with the test admin account. The whole process takes about ten minutes assuming Node.js and MySQL are already installed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/15aozzz/Lab-Nova-Salud/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js v18 or higher — nodejs.org
- MySQL v8.0 or higher — dev.mysql.com
- MySQL Workbench or any MySQL client capable of executing
.sqlfiles
Import the database
Open MySQL Workbench (or your preferred MySQL client) and execute the file at the root of the repository:This script creates the
BoticaNovaSalud_Final database and populates it with:- All tables (products, clients, sales, users, receipts, and more)
- Master data — categories, presentations, laboratories, and pricing tiers
- Sample products and test user accounts
- Stored procedures used by every API endpoint
- Triggers that validate available stock before a sale and automatically deduct it after
Every backend API call invokes a stored procedure. The SQL file must be imported before starting the server, or all requests will fail.
Set up and start the backend
Install dependencies from the Copy the environment template and fill in your MySQL credentials:Start the server:Confirm it is running by opening
backend/ directory:http://localhost:3000/api/health in your browser. You should see:Set up and start the frontend
Open a new terminal, then install dependencies from the Create the frontend environment file:Start the Vite development server:
fn/ directory:fn/.env
Verify the setup
Open http://localhost:5173 in your browser. You should see the Botica Nova Salud login page.Log in with the seeded admin account:
A successful login redirects you to the dashboard, where you will see KPI cards, the weekly sales chart, and low-stock alerts generated from the sample data.
| Field | Value |
|---|---|
| Username | admin |
| Password | admin123 |