Welcome to Tanqueo Backend API
The Tanqueo Backend API is a comprehensive fleet management system designed to track fuel consumption (tanqueos), vehicle maintenance (engrases), documentation, budgets, and operational metrics for transportation and heavy equipment fleets.Overview
Tanqueo Backend provides a robust REST API built with modern technologies to manage all aspects of fleet operations, from fuel tracking to maintenance scheduling and budget management.Key Features
Fuel Management
Track fuel consumption, costs, and pump operations with detailed analytics and filtering
Maintenance Tracking
Monitor vehicle maintenance, lubrication services, and operational expenses
Document Management
Manage vehicle documentation including SOAT, RTM, insurance policies, and property cards
Budget Planning
Create and manage operational budgets with detailed line items and approval workflows
Fleet Administration
Complete vehicle fleet management with specifications, classifications, and operational areas
Authentication & Security
Secure API with Supabase authentication, JWT tokens, and Row Level Security (RLS)
Technology Stack
The Tanqueo Backend is built with a modern, production-ready stack:- Runtime: Node.js with TypeScript
- Framework: Express.js 5.x
- Database: PostgreSQL via Supabase
- Authentication: Supabase Auth with JWT tokens
- File Uploads: Multer for document handling
- Validation: TypeScript interfaces and runtime validation
Core Dependencies
API Modules
The API is organized into the following modules:| Module | Endpoint | Description |
|---|---|---|
| Authentication | /api/auth | User login, logout, and token management |
| Tanqueos | /api/tanqueos | Fuel tracking and pump operations |
| Engrases | /api/engrases | Maintenance and lubrication services |
| Documents | /api/documentos | Vehicle documentation management |
| Fleet | /api/flota | Vehicle and equipment management |
| Maintenance | /api/mantenimiento | Maintenance planning and tracking |
| Budgets | /api/presupuestos | Budget creation and management |
| Catalogs | /api/catalogos | Master data catalogs |
| Uploads | /api/upload | File upload handling |
| Pump Balances | /api/saldos-bombas | Fuel pump balance tracking |
Quick Links
Quickstart
Get started with installation and your first API request
Authentication
Learn how to authenticate and secure your API requests
Architecture
Understand the system architecture and design patterns
Data Models
Explore the core data models and TypeScript interfaces