Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/jperez77775/ProyectoDocker/llms.txt

Use this file to discover all available pages before exploring further.

The ProyectoDocker backend exposes a REST API built with Express.js. You can use it to retrieve CV data stored in the cv_db MySQL database. The API runs on port 4000 and is consumed by the React frontend, but you can also call it directly with any HTTP client.

Base URL

http://localhost:4000

Authentication

No authentication is required. All endpoints are publicly accessible.

Headers

The API sets the following response header on all successful responses:
Content-Type: application/json; charset=utf-8

CORS

CORS is enabled for all origins via app.use(cors()). You can call this API from any browser origin without additional configuration.

Endpoints

MethodPathDescription
GET/cvReturns full CV data (persona + formacion)
See the GET /cv page for full request and response documentation.

Service availability during startup

During Docker startup, the backend may be ready before MySQL has finished initializing. If you call any endpoint while db is null or while a connection attempt is in progress (isConnecting is true), the API returns HTTP 503 with the following body:
{ "error": "La base de datos se está reconectando." }
This is expected behavior. The backend retries the database connection automatically every 5 seconds. The frontend also retries automatically every 3 seconds until the API responds successfully.

Build docs developers (and LLMs) love