How fadi55255/invoice-manager works
Invoice Manager is a small-business invoicing application. The visible workflow is a user entering the React workspace, browsing or editing contacts and viewing invoices; contact changes pass through the Express API, service, repository, and PostgreSQL. The README also describes payments, reporting, delivery, reminders, attachments, and audit logging, but most of those implementations are absent from the tree. The graph preserves these documented capabilities without implying they are wired into the sampled runtime. Server-side auth is shown; client auth currently uses mock local storage.
Main entry points: App.jsx Workspace routes · contacts.routes.js Contact endpoints · contacts.service.js Contact rules · invoices.routes.js Invoice endpoints
Components 23
Web client
- Workspace routes
client/src/App.jsx - Mock session
client/src/context/AuthContext.jsx - Contact views
client/src/pages/ContactsList.jsx - Contact editor
client/src/pages/ContactForm.jsx - Invoice view
client/src/pages/InvoicesList.jsx - HTTP client
client/src/api/api.js
API features
- Express routes
server/src/app.js - Contact endpoints
server/src/modules/contacts/contacts.routes.js - Contact rules
server/src/modules/contacts/contacts.service.js - Invoice endpoints
server/src/modules/invoices/invoices.routes.js - Invoice operations
server/src/modules/invoices/invoices.service.js - Activity audit
server/src/modules/activity-logs/activityLog.js - Role checks
server/src/middleware/auth.js
Persistence
- Contact queries
server/src/modules/contacts/contacts.repository.js - Invoice queries
server/src/modules/invoices/invoices.repository.js - Postgres connection
server/src/config/pool.js - PostgreSQL
server/prisma/schema.prisma
Documented capabilities
- Payment tracking
server/src/modules - Financial reports
server/src/modules - PDF and email
server/src/shared - Overdue reminders
server/src - Invoice attachments
server/src/modules
Other components
- Business user
Connections 18
- Business user → Workspace routes: uses
README.md - Workspace routes → Mock session: provides session
client/src/App.jsx - Workspace routes → Contact views: routes to
client/src/App.jsx - Workspace routes → Contact editor: routes to
client/src/App.jsx - Workspace routes → Invoice view: routes to
client/src/App.jsx - Workspace routes → HTTP client: loads and saves
client/src/App.jsx - Express routes → Contact endpoints: mounts
server/src/app.js - Express routes → Invoice endpoints: mounts
server/src/app.js - Contact endpoints → Role checks: requires roles
server/src/modules/contacts/contacts.routes.js - Contact endpoints → Contact rules: calls
server/src/modules/contacts/contacts.routes.js - Contact rules → Contact queries: calls
server/src/modules/contacts/contacts.service.js - Contact rules → Activity audit: records actions
server/src/modules/contacts/contacts.service.js - Contact queries → Postgres connection: queries
server/src/modules/contacts/contacts.repository.js - Invoice endpoints → Role checks: requires roles
server/src/modules/invoices/invoices.routes.js - Invoice endpoints → Invoice operations: calls
server/src/modules/invoices/invoices.routes.js - Invoice operations → Invoice queries: delegates
server/src/modules/invoices/invoices.service.js - Invoice queries → Postgres connection: queries
server/src/modules/invoices/invoices.repository.js - Postgres connection → PostgreSQL: connects to
server/src/config/pool.js