Before you start, make sure you have Node.js 18+ and npm installed. The front end connects to a REST API backend — the backend must be running before the front end will work.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CKoldo/Vacaciones-front/llms.txt
Use this file to discover all available pages before exploring further.
Configure the environment
Create a If you omit this variable, the app falls back to
.env file at the project root and set the URL of your backend API.http://localhost:5175 by default.The dev server proxies all
/api requests to the address in VITE_API_URL, so you never need to hard-code the backend URL inside the app. This is configured in vite.config.ts under server.proxy.Start the backend
The front end makes API calls on every page load. Start your backend server and confirm it is accepting requests at the address you set in
VITE_API_URL before continuing.Run the development server
Start the Vite dev server:The app is available at
http://localhost:5173. Open it in your browser and you should see the login screen.Log in
On the login screen, enter the username and password for your account and click Iniciar Sesión.
- If your credentials are correct, you are redirected to the home dashboard (
/home). - If login fails, an error message appears beneath the password field. Check that the backend is reachable and that your credentials are correct.
Register your first employee
Once logged in, navigate to Registro de Personal from the sidebar. Fill in the employee’s name, surname, hire date, email, and position, then save the record.The hire date is used to calculate when the employee’s first vacation period begins (one year after joining). All subsequent vacation scheduling flows from this record.
Only users with the admin role can create and modify employee records. If you do not see the option, contact your system administrator.
Next steps
Authentication
Understand JWT login, roles, and session expiry.
Personal registry
Manage employee master data and hire dates.
Vacation scheduling
Create flexible and block vacation ranges.
Environment variables
Full reference for all configuration variables.
