LYRA ERP - Enterprise Resource Planning System
Full-stack ERP for mechanical workshops deployed across multiple locations in Chile, managing over $10+ billion CLP in financial transactions.
Developed full-stack ERP for mechanical workshops deployed across multiple locations in Chile, managing over 100,000 work orders, $10+ billion CLP in financial transactions, 40,000+ quotes, and 70,000+ automated emails, serving 100+ concurrent users with 40+ RESTful API endpoints.
Key Features
Distributed Caching: Implemented Redis 7 caching layer achieving 60%+ latency reduction with graceful degradation for high availability and health monitoring endpoints.
Role-Based Access Control: Designed RBAC with NextAuth v5 JWT authentication supporting 7 permission levels (pending, user, admin, administrativo, encargado, jefe_mecanico, gerente).
Dual Payment Gateways: Integrated Mercado Pago and Fintoc (Chilean bank transfer) with real-time webhook processing, supporting multiple payment methods (card, transfer, cash) and comprehensive transaction tracking with 9 payment states.
Complex Database Schema: Built 14+ interconnected models using Prisma ORM with optimized indexes, constraints, and versioned migrations.
PDF Generation: Server-side invoice and work order exports using Puppeteer with custom HTML/CSS templates.
Containerized Stack: Docker Compose (PostgreSQL 16, Redis 7, Redis Commander) for reproducible environments, deployed to Railway with automated CI/CD.
Technologies
Next.js 15, React 19, TypeScript, PostgreSQL, Prisma, Redis, NextAuth, Puppeteer, Docker, Railway, Tailwind CSS, Shadcn/UI, Zod, TanStack Table, Framer Motion.