This guide walks you through cloning the Ordervista repository, configuring environment variables, connecting a local MySQL database, and running both the backend API and the React frontend on your machine. By the end you will have a fully functional local instance ready for development or testing.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ytabeloved/ordervista/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Ensure the following tools are installed on your system before continuing:
- Node.js (LTS recommended) — nodejs.org
- npm (bundled with Node.js)
- MySQL — version 8.0 or later, running locally
- Git — git-scm.com
Clone the repository
Clone the Ordervista monorepo and move into the project root:The repository contains two top-level directories —
backend/ and frontend/ — that you will configure independently in the next steps.Configure the backend
Navigate to the Create a Start the backend in development mode (uses You should see
backend/ directory and install dependencies:.env file in the backend/ directory with the following content, replacing the placeholder values with your local MySQL credentials and a secure JWT secret:nodemon for hot-reloading):Servidor corriendo en puerto 3000 in the terminal, confirming Express is listening.Configure the frontend
Open a new terminal tab, navigate to the Create a Start the Vite development server:
frontend/ directory from the project root, and install dependencies:.env file in the frontend/ directory pointing to the local API:Verify the API health endpoint
With the backend running, confirm the API is healthy by sending a GET request to the health endpoint:Expected response:If you receive this response, the Express server is connected and ready to handle requests.
Log in to Ordervista
Authenticate against the API using a POST request to A successful login returns a JWT token and the authenticated user’s profile:Copy the
/api/auth/login. Substitute the credentials of a user already seeded in your database:token value — the frontend stores it in localStorage and sends it as a Bearer token on every subsequent protected request.The React application runs at
http://localhost:5173 by default. Open that URL in your browser after both servers are running to access the full Ordervista UI.