Skip to main content
This guide gets you to a working login screen as fast as possible. For a full walkthrough of every configuration option, see the Installation page.

Prerequisites

  • PHP 7.4 or higher
  • MySQL or MariaDB
  • A local web server — XAMPP, WAMP, or Laragon all work

Steps

1

Clone the repository

Download or clone the project and place the folder inside your web server’s public directory.
git clone https://github.com/EmirPolito/CRUD-HOTEL-GUEVARINI-Publico.git
Move the resulting folder (CRUD-HOTEL-GUEVARINI-Publico) into your server root — for example C:\xampp\htdocs\ on XAMPP.
2

Install dependencies

Open a terminal in the project root and run:
composer install
This creates the vendor/ directory containing PHPMailer and any other required libraries.
3

Import the database

Start your MySQL server, then import base_de_datos.sql from the project root using phpMyAdmin, DBeaver, MySQL Workbench, or the CLI:
mysql -u root -p < base_de_datos.sql
This creates the hotel_guevarini_publico database, all tables, and seed data including the test accounts below.
4

Configure database credentials

Open php/conexion.php and update the four private properties to match your local MySQL setup:
private $host     = "localhost";
private $db_name  = "hotel_guevarini_publico";
private $username = "root";
private $password = "";
5

Configure SMTP

The system sends verification and password recovery emails via SMTP. Open each of the following files and fill in your SMTP credentials:
  • php/auth/procesar_registro.php
  • php/auth/enviar_recuperacion.php
  • php/auth/reenviar_verificacion.php
  • php/usuarios/guardar_usuario.php
$mail->Host     = 'sandbox.smtp.mailtrap.io';
$mail->Username = 'YOUR_SMTP_USERNAME';
$mail->Password = 'YOUR_SMTP_PASSWORD';
$mail->Port     = 587;
6

Open the login page

Start your web server and navigate to the login page in your browser:
http://localhost/CRUD-HOTEL-GUEVARINI-Publico/views/login.php
Use one of the pre-configured test accounts below to log in.

Test accounts

After importing the database, two seed accounts are available immediately:
RoleEmailPassword
Administratoradmin@correo.com12345
Clientcliente@correo.com12345
Change these passwords before deploying to any environment accessible outside your local machine.
For the complete installation reference — including platform-specific paths and detailed SMTP setup — see the Installation guide.