Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sheeplettuce/Monitor/llms.txt

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

Monitor API provides the complete backend for auto-body repair shops managing insurance claim workflows. From the moment a vehicle arrives (Ingreso) through restoration and final delivery (Salida), Monitor tracks every expediente, stores photographic evidence, records itemized damage surveys, and enforces role-based access so each team member sees only what they need.

Quickstart

Run the server and make your first authenticated API call in minutes.

API Reference

Full endpoint documentation with request/response schemas and curl examples.

Authentication & Roles

Understand JWT auth and the three-tier role system (Administrador, Operador, Técnico).

Data Model

Explore the Prisma schema: expedientes, evidencias, levantamientos, and users.

What Monitor API does

Monitor API is an Express 5 / TypeScript backend backed by PostgreSQL (via Prisma). It exposes a REST API on port 3000 and advertises itself on the local network via mDNS so mobile clients can discover it automatically.

Expediente Tracking

Full CRUD for insurance claim files with a four-stage status lifecycle and audit history.

Evidence Uploads

Upload photos and documents per claim. Files are stored locally, organized by siniestro number.

Damage Surveys

Create levantamiento records with line-item cost concepts and automatic total calculation.

Get started

1

Install dependencies

Clone the repository and install with pnpm.
git clone https://github.com/sheeplettuce/Monitor.git
cd Monitor
pnpm install
2

Configure environment

Copy the environment template and set your database URL and JWT secret.
cp .env.example .env
# Edit DATABASE_URL and JWT_SECRET in .env
3

Run the server

Start the development server on port 3000.
pnpm dev
4

Authenticate and call the API

Obtain a JWT token from /api/auth/login, then attach it as a Bearer token on every request.
curl -X POST http://localhost:3000/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"username": "admin", "password": "yourpassword"}'
Monitor API uses Bonjour/mDNS to broadcast itself on the local network as _monitor._tcp. Clients on the same LAN can resolve the server without knowing its IP address.

Build docs developers (and LLMs) love