The Don Mamino API is a Node.js/Express application backed by MySQL. Follow the steps below to get a local instance running on your machine in under ten minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/luisllatas-dev/Proyecto_Pasteleria_DonMamino/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are installed:- Node.js v18 or later — nodejs.org
- MySQL 8.0 or later — mysql.com
- Git
Setup steps
Install dependencies
Install all required npm packages.This installs
express, mysql2, jsonwebtoken, bcryptjs, dotenv, cors, and the nodemon dev dependency.Create the database and run the schema
Connect to your MySQL instance and execute the schema file to create the
don_mamino_db database and all tables.The schema creates the database automatically with
CREATE DATABASE IF NOT EXISTS don_mamino_db, so you do not need to create it manually beforehand.Create the .env file
Create a
.env file in the project root with the following variables. Replace the placeholder values with your actual MySQL credentials and a secure secret string for JWT signing..env
| Variable | Description |
|---|---|
DB_HOST | Hostname of your MySQL server |
DB_USER | MySQL user with access to don_mamino_db |
DB_PASSWORD | Password for the MySQL user |
DB_NAME | Database name (don_mamino_db) |
DB_PORT | MySQL port (default: 3306) |
JWT_SECRET | Secret key used to sign and verify JWT tokens |
Verify the setup
Once the server is running, confirm it is healthy with a request to the health endpoint.200 OK response confirms the server is up and connected to the database. You are now ready to make authenticated API requests.