Sentidos Café runs on a standard PHP + Apache + MySQL stack, which means you can have a fully working local copy running in under ten minutes using XAMPP or WAMP. No Composer dependencies, no build steps — just copy the files, import the schema, and open your browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jimmy13anhelo/paginaweb2.github.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following available:- PHP 7.4 or higher — required for PDO named exceptions and
str_containsusage - MySQL 5.7 or higher — the schema uses
DECIMAL(10,2),DEFAULT CURRENT_TIMESTAMP, andON DUPLICATE KEY UPDATE - Apache — the project uses standard
require_onceincludes with relative paths; no.htaccessrewrite rules required - phpMyAdmin (optional but recommended) — bundled with both XAMPP and WAMP; makes importing
script.sqlone click
Setup Steps
Install XAMPP or WAMP and start services
After installing your preferred stack, open the XAMPP Control Panel (or the WAMP tray icon) and start both the Apache and MySQL services. Both indicators should turn green before you proceed.Confirm Apache is running by visiting
http://localhost — you should see the XAMPP or WAMP welcome page.Copy the project files into your web root
Clone or download the repository, then place the entire project folder inside your web root:After copying, your web root should look like this:
Create the database and import the schema
- Open phpMyAdmin at
http://localhost/phpmyadmin - Click New in the left sidebar
- Enter the database name:
sentidos_cafe_dband click Create - Select the new database, then click the Import tab
- Click Choose File, select
script.sqlfrom your project folder, and click Go
pedidos, reservas, usuarios) and insert the default admin user automatically.Alternatively, run the schema directly from the MySQL command line:Verify the database credentials in conexion.php
Open If you set a custom MySQL root password during installation, enter it between the quotes on the
conexion.php in a text editor and confirm the four connection variables match your local MySQL setup. XAMPP and WAMP both use root with an empty password by default:$password line. Every PHP page in the project pulls this file in via require_once 'conexion.php', so you only need to change it in one place.Open the site in your browser
Navigate to:You should see the full Sentidos Café homepage — the orange header with the circular logo, the navigation bar, the welcome section with the coffee cup image, the Google Maps embed showing the Cusco location, the four combo cards with WhatsApp order buttons, and the contact footer.To access the admin login, go to:Log in with the seeded credentials: user
admin / password admin123.Troubleshooting
“Error de conexión” on page load This error is thrown directly by thecatch(PDOException $error) block in conexion.php. The most common causes are:
- MySQL is not running — go back to the XAMPP/WAMP control panel and start the MySQL service
- Wrong password in
$password— check whether you set a root password during MySQL installation - The database doesn’t exist yet — make sure you completed Step 3 and the
sentidos_cafe_dbdatabase appears in phpMyAdmin
index.php (remove them before any deployment):
C:\xampp\apache\logs\error.log (XAMPP Windows) or /Applications/XAMPP/logs/error_log (XAMPP macOS).
WhatsApp buttons open but send to the wrong number
The WhatsApp phone number is hardcoded in buscador.js as 937604465 (Peru). If you are testing with a different number, find the numeroTelefono constant inside the DOMContentLoaded callback (Section 2 — WhatsApp logic) and update it: