Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/JuanSerna14/Final-lenguaje-Avanzado/llms.txt

Use this file to discover all available pages before exploring further.

PitchPro (ArquiMarket) is an end-to-end sports court reservation platform. The backend exposes a JWT-secured REST API for managing courts (canchas) and bookings (reservas), while the React dashboard gives operators a real-time view of system health, court inventory, and recent reservations.

Quickstart

Get the backend and frontend running locally in under 10 minutes.

Architecture

Understand the two-tier project layout, data model, and request flow.

API Reference

Explore every REST endpoint with request/response schemas and examples.

Authentication

Learn how JWT access tokens and refresh tokens work across the stack.

What’s inside

Backend Guide

Set up the Express + TypeScript API, connect PostgreSQL, and seed sample data.

Frontend Guide

Configure the Vite + React dashboard and connect it to the backend API.

Docker Deployment

Run the full stack with Docker Compose — PostgreSQL included.

Environment Variables

Complete reference for every .env variable in both projects.

Key features

1

Secure authentication

Register and log in with email/password. The API returns a 15-minute access token and a 7-day refresh token stored in PostgreSQL.
2

Court management

Create and query sports courts with name, description, hourly price, and active status. All writes are validated with Zod schemas.
3

Conflict-free bookings

Reservations are validated against existing time slots — the API returns 409 Conflict if the court is already booked in that window.
4

Live dashboard

The React frontend polls /health, /api/canchas, and /api/reservas and displays live stats, a courts table, and recent bookings.

Build docs developers (and LLMs) love