Skip to main content

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.

The Don Mamino API powers the backend of the Don Mamino bakery business. It provides a complete set of endpoints to manage products, clients, orders, inventory, and sales reporting across multiple physical locations (sedes). All write operations are protected with JWT authentication.

Quick Setup

Get the API running locally in minutes with Node.js and MySQL.

Authentication

Learn how to log in and include your token in API requests.

Data Model

Understand the entities — products, orders, clients, and locations.

API Reference

Browse all endpoints with request/response schemas and examples.

What the API covers

The Don Mamino API is organized around core bakery business domains:

Products

Manage your catalog of bakery items and raw ingredients per location.

Locations (Sedes)

Configure and query physical bakery locations with contact information.

Orders

Create and track orders from placement through delivery.

Clients

Maintain a client database with contact and shipping details.

Inventory

Monitor stock levels and get alerts when quantities fall below minimums.

Sales Reports

Generate and retrieve sales summaries by location and date.

Quick start

1

Set up the database

Create a MySQL database and run the provided schema to initialize all tables.
2

Configure environment variables

Set your database credentials and JWT secret in a .env file.
3

Start the server

Run npm start to launch the API on port 3000.
4

Authenticate and make your first call

Call POST /api/auth/login to receive a JWT token, then include it in the Authorization header for protected endpoints.
All mutation endpoints (POST, PUT, DELETE) require a valid JWT token in the Authorization: Bearer <token> header. See Authentication for details.

Build docs developers (and LLMs) love