How pollyvaughn/legalis works
Legalis System is a web application for managing a legal and accounting practice. A user signs in, navigates protected screens, and manages clients and their cases, advisory work, deadlines, documents, and fees; browser requests reach an Express REST API whose services use Prisma and PostgreSQL. The README identifies the route–controller–service backend structure, while sampled frontend code shows protected routing and centralized authenticated API requests. Several feature areas are documented or present in the tree but were not sampled, so their internal connections are left out where evidence is unavailable.
Main entry points: axios.js Authenticated API client · App.jsx Protected navigation · database.js Prisma client · clientes Client management
Components 21
Web application
- Protected navigation
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Client management
frontend/src/pages/clientes - Case management
frontend/src/pages/expedientes - Advisories and filings
frontend/src/pages/asesorias - Deadlines calendar
frontend/src/pages/calendario - Fees and accounts
frontend/src/pages/honorarios - Document templates
frontend/src/pages/plantillas - Audit and users
frontend/src/pages/auditoria - Authenticated API client
frontend/src/api/axios.js
API and domain
- Authentication
backend/src/modules/auth - Clients
backend/src/modules/clientes - Cases and reports
backend/src/modules/expedientes - Advisories and obligations
backend/src/modules/tramites - Deadlines and calendars
backend/src/modules/plazos - Fees and account ledger
backend/src/modules/cuenta-corriente - Documents and templates
backend/src/modules/plantillas - Audit records
backend/src/modules/auditoria
Persistence
- Prisma client
backend/src/config/database.js - PostgreSQL
Other components
- Practice user
Connections 27
- Practice user → Protected navigation: uses
frontend/src/App.jsx - Protected navigation → Session context: loads session
- Protected navigation → Client management: routes to
frontend/src/App.jsx - Protected navigation → Case management: routes to
frontend/src/App.jsx - Protected navigation → Advisories and filings: routes to
frontend/src/App.jsx - Protected navigation → Deadlines calendar: routes to
frontend/src/App.jsx - Protected navigation → Fees and accounts: routes to
frontend/src/App.jsx - Protected navigation → Document templates: routes to
frontend/src/App.jsx - Protected navigation → Audit and users: routes to
frontend/src/App.jsx - Session context → Authenticated API client: logs in via
frontend/src/context/AuthContext.jsx - Client management → Authenticated API client: requests data
frontend/src/pages/clientes/ClienteDetailPage.jsx - Client management → Advisories and filings: renders section
frontend/src/pages/clientes/ClienteDetailPage.jsx - Advisories and filings → Authenticated API client: requests data
frontend/src/pages/asesorias/AsesoriasPage.jsx - Authenticated API client → Authentication: calls REST API
README.md - Authenticated API client → Clients: calls REST API
README.md - Authenticated API client → Cases and reports: calls REST API
README.md - Authenticated API client → Advisories and obligations: calls REST API
README.md - Authenticated API client → Deadlines and calendars: calls REST API
README.md - Authenticated API client → Fees and account ledger: calls REST API
README.md - Authenticated API client → Documents and templates: calls REST API
README.md - Authenticated API client → Audit records: calls REST API
README.md - Cases and reports → Deadlines and calendars: uses deadline service
backend/src/modules/expedientes/expedientes.reporte.service.js - Clients → Prisma client: queries via
backend/src/modules/clientes/clientes.service.js - Cases and reports → Prisma client: queries via
backend/src/modules/expedientes/expedientes.reporte.service.js - Advisories and obligations → Prisma client: queries via
- Deadlines and calendars → Prisma client: queries via
- Prisma client → PostgreSQL: connects to
backend/src/config/database.js