This guide covers everything needed for productive local development on Directorio UDC. It goes beyond a basic quickstart to include editor setup, code-quality tooling, and the correct workflow for running the React frontend and the Express backend together in parallel.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.
Prerequisites
Before you begin, make sure the following are installed on your machine:
- Node.js 18 or higher — nodejs.org/en/download
- npm 9 or higher — bundled with Node.js; verify with
npm --version - Git — git-scm.com
- A code editor — VS Code is recommended for first-class TypeScript and Vite support
Clone and Install
Install backend dependencies
Navigate into the This installs Express 5,
BACKEND directory and install its Node.js dependencies:cors, and the path module listed in BACKEND/package.json.Running Both Services
The frontend (Vite dev server) and backend (Express) are separate Node.js processes and must each run in their own terminal window. Open two terminals side-by-side, then start each service:- Terminal 1 — Backend
- Terminal 2 — Frontend
Start the Express server from the By default the server listens on port 3000. You can override this with the
BACKEND directory:PORT environment variable — see the Environment guide for details.src/ file are reflected instantly without a full page reload, thanks to Vite’s HMR engine.
ESLint
The frontend uses ESLint 10 configured inFRONTEND/eslint.config.js. The config extends:
@eslint/jsrecommended rulestypescript-eslintrecommended ruleseslint-plugin-react-hooks— enforces the Rules of Hookseslint-plugin-react-refresh— warns when component exports are incompatible with fast-refresh
dist/ output folder is ignored by ESLint via the globalIgnores call in the config, so only source files are checked.
TypeScript Checking
TypeScript type-checking is bundled into the production build step —npm run build runs tsc -b before handing control to Vite:
tsc in --noEmit mode:
FRONTEND/tsconfig.app.json with strict settings including noUnusedLocals, noUnusedParameters, and noFallthroughCasesInSwitch, targeting ES2023 output.