The React frontend has a single required environment variable that controls which backend it talks to.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/Goods-Inventory/llms.txt
Use this file to discover all available pages before exploring further.
Environment variables
The base URL of the Flask backend. All API calls are prefixed with this value.Example:
http://localhost:5000src/config/api.js:
src/config/api.js
VITE_ to the browser bundle at build time. Any environment variable without this prefix is intentionally kept out of client-side code.
Development
Start the Vite development server with:http://localhost:5173 by default and proxies hot-module replacement (HMR) updates to the browser automatically as you edit source files.
Production build
Compile a production-optimised bundle with:dist/ folder containing static HTML, JS, and CSS assets. Set VITE_API_URL to the production Flask URL before running the build so the correct backend address is baked into the bundle:
dist/ folder with any static file host — Nginx, Vercel, GitHub Pages, or any CDN that can serve a single-page application.
Dependencies
Key packages used by the frontend:| Package | Purpose |
|---|---|
react | Core UI library (v19) |
react-dom | DOM rendering for React |
react-router-dom | Client-side routing (BrowserRouter, useNavigate, etc.) |
@headlessui/react | Unstyled, accessible UI primitives (dropdowns, dialogs) |
@heroicons/react | SVG icon set designed for Tailwind CSS |
flowbite | Tailwind CSS component library |
tailwindcss | Utility-first CSS framework |
vite | Build tool and development server |