This page covers every step needed to get Hotel Guevarini running in a local development environment.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EmirPolito/CRUD-HOTEL-GUEVARINI-Publico/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Web server
XAMPP, WAMP, or Laragon — any stack that bundles Apache and MySQL/MariaDB.
PHP 7.4+
The backend is built on PHP 7.4. Verify with
php -v in a terminal.MySQL or MariaDB
Included with XAMPP, WAMP, and Laragon. Accessible via phpMyAdmin or any MySQL client.
Composer
PHP dependency manager required to install PHPMailer. Download at getcomposer.org.
Steps
Clone or download the project
Clone the repository using Git:Then move the
CRUD-HOTEL-GUEVARINI-Publico folder into the public directory of your web server.- XAMPP
- WAMP
- Laragon
Install PHP dependencies
Open a terminal, navigate to the project root, and run:Composer reads
composer.json and downloads PHPMailer ^7.0 into the vendor/ directory. This directory must be present for email features to work.Set up the database
- Start your MySQL/MariaDB server (via the XAMPP or WAMP control panel, or by launching Laragon).
- Open your MySQL client (phpMyAdmin, DBeaver, MySQL Workbench, or the CLI).
- Import
base_de_datos.sqlfrom the project root.
- Database:
hotel_guevarini_publico - Tables:
roles,usuarios,clientes,habitaciones,reservaciones - Seed data: two roles (Administrator, Client), two test user accounts, two sample clients, sample rooms, and a sample reservation
Configure database credentials
Open
php/conexion.php and replace the placeholder values with your local MySQL credentials:Configure SMTP for email
Hotel Guevarini sends transactional emails for account verification and password recovery. You must provide SMTP credentials in the following four files:
php/auth/procesar_registro.php— sends the verification email on new registrationphp/auth/enviar_recuperacion.php— sends the password recovery linkphp/auth/reenviar_verificacion.php— resends the verification email on requestphp/usuarios/guardar_usuario.php— sends verification when an admin creates a user