Directorio UDC is built on a classic two-tier architecture: a React single-page application handles everything the user sees and interacts with, while a dedicated Express.js REST API manages data access and business logic on the server. The two services are developed and deployed independently, communicating over HTTP, which keeps the presentation layer completely decoupled from the data layer and makes each service easy to develop, test, and scale on its own.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Minogar28/DIRECTORIO_UDC/llms.txt
Use this file to discover all available pages before exploring further.
Services
Frontend — FRONTEND/
The frontend is a React 19 + TypeScript single-page application scaffolded and served by Vite. During development Vite’s built-in dev server starts on port 5173 and provides instant Hot Module Replacement (HMR), so changes to any component or stylesheet appear in the browser without a full page reload. For production, vite build compiles and bundles the application into a set of static assets that can be served by any CDN or static hosting provider.
| Detail | Value |
|---|---|
| Framework | React 19 |
| Language | TypeScript |
| Build tool | Vite 8 |
| Dev port | 5173 |
Backend — BACKEND/
The backend is an Express.js 5 HTTP server written in plain JavaScript and run with Node.js. It exposes a REST API that the frontend calls to read and write advisory-space data. The server listens on port 3000 and uses the cors npm package to allow cross-origin requests from the Vite dev server during development.
| Detail | Value |
|---|---|
| Framework | Express 5 |
| Runtime | Node.js (CommonJS) |
| API port | 3000 |
Service Communication
The React SPA runs entirely in the browser and makes HTTP requests to the Express backend to fetch and submit data. Because the Vite dev server (localhost:5173) and the Express API (localhost:3000) run on different ports, the browser treats them as separate origins and would normally block cross-origin requests. To allow this, the backend loads the cors npm package as Express middleware. The following snippet shows the intended setup for index.js:
Directory Structure
Explore Further
Frontend Architecture
React 19, TypeScript, Vite configuration, CSS theming, and the component tree.
Backend Architecture
Express 5, CORS setup, CommonJS module system, and how to start the server.