TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Nelsoncg98/InnovaTech/llms.txt
Use this file to discover all available pages before exploring further.
frontend-web application is the digital channel frontend for InnovaTech SOA. It is one of two independent React single-page applications in the platform — the other being frontend-pos for physical store terminals. This app delivers the customer-facing web storefront and communicates exclusively with backend microservices through the API Gateway running on port 8080.
Tech Stack
frontend-web is built with a modern, minimal toolchain sourced directly from package.json:
| Technology | Version | Role |
|---|---|---|
| React | 19.2.7 | UI component library |
| React DOM | 19.2.7 | DOM rendering |
| Vite | 8.1.0 | Dev server and build tool |
| @vitejs/plugin-react | 6.0.2 | Babel-based Fast Refresh |
| oxlint | 1.69.0 | Fast Rust-based linter |
| @types/react | 19.2.17 | TypeScript type definitions |
| @types/react-dom | 19.2.3 | TypeScript type definitions for DOM |
"type": "module") and ships TypeScript type definitions in devDependencies, enabling editor intellisense without requiring a full TypeScript compilation step.
Getting Started
Start the development server
Launch Vite’s dev server with Hot Module Replacement (HMR) enabled. Vite serves the app on its default port:The application will be available at
http://localhost:5173.Backend microservices must be running before the frontend can display real data. At minimum, the API Gateway (
port 8080) and servicio-catalogo (port 8084) must be up.Project Structure
The application follows the standard Vite + React layout. Key files and their roles are:| Path | Description |
|---|---|
index.html | HTML entry point; mounts the #root div and loads src/main.jsx as an ES module |
src/main.jsx | Application entry point; renders the root <App /> component into #root |
src/App.jsx | Root React component; top-level layout and routing anchor for the storefront |
src/App.css | Component-scoped styles for App.jsx |
src/index.css | Global baseline styles applied across the entire application |
src/assets/ | Static assets imported directly into components (e.g. react.svg, vite.svg, hero.png) |
public/favicon.svg | Browser tab icon, served at /favicon.svg |
public/icons.svg | SVG sprite sheet referenced by <use href="/icons.svg#..."> in components |
vite.config.js | Vite configuration; registers the @vitejs/plugin-react plugin |
API Integration
All backend communication is routed through the API Gateway athttp://localhost:8080. The gateway’s application.yml defines the available route prefixes:
| Route Prefix | Upstream Service | Port |
|---|---|---|
/api/v1/catalogo/** | servicio-catalogo | 8084 |
/api/v1/ventas-pos/** | servicio-ventapos (POS orchestrator) | 8082 |
/api/v1/inventario/** | servicio-inventario | 8081 |
Available Scripts
The following scripts are defined inpackage.json:
| Script | Command | Description |
|---|---|---|
dev | vite | Starts the Vite development server with HMR on http://localhost:5173 |
build | vite build | Bundles the app for production into the dist/ directory |
lint | oxlint | Runs the oxlint static analyser across the project source |
preview | vite preview | Serves the production dist/ build locally for pre-deploy verification |