How brandonedy05/ai-dev-kodigo works
Mi Tiendita Fácil is a desktop point-of-sale system: staff sign in, use role-filtered screens to manage cash, customers and products, and record sales; managers also administer users and review reports. The Flet frontend calls a FastAPI REST backend, whose services implement business operations over SQLModel data stored in SQLite or PostgreSQL. The graph combines documented product capabilities with sampled wiring; some individual router and service implementations were not excerpted, so their detailed internal calls are not asserted.
Main entry points: api_client.py HTTP API client · database.py Database setup and sessions · main.py POS application · sale.py POS data models
Components 25
Desktop frontend
- POS application
frontend/app/main.py - Login screen
frontend/app/views/login_view.py - Sales terminal
frontend/app/views/pos_terminal_view.py - Cash screen
frontend/app/views/cash_register_view.py - Products, customers, reports
frontend/app/views/secondary_views.py - User administration
frontend/app/views/users_view.py - HTTP API client
frontend/app/services/api_client.py
API and security
- Authentication routes
backend/app/routers/auth.py - Cash routes
backend/app/routers/cash_register.py - Product routes
backend/app/routers/products.py - Report routes
backend/app/routers/reports.py - Sales routes
backend/app/routers/sales.py - Customer routes
backend/app/routers/customers.py - User routes
backend/app/routers/users.py - Password and token security
backend/app/core/security.py
Store operations
- Cash operations
backend/app/services/cash_register_service.py - Product catalog
backend/app/services/product_service.py - Customer management
backend/app/services/customer_service.py - Sale processing
backend/app/services/sale_service.py - Sales and stock reports
backend/app/services/report_service.py - User administration
backend/app/services/user_service.py
Persistence and models
- Database setup and sessions
backend/app/core/database.py - POS data models
backend/app/models/sale.py - SQLite or PostgreSQL
Other components
- Cashier or manager
Connections 40
- Cashier or manager → POS application: uses
README.md - POS application → Login screen: shows
frontend/app/main.py - POS application → Sales terminal: creates
frontend/app/main.py - POS application → Cash screen: creates
frontend/app/main.py - POS application → Products, customers, reports: creates
frontend/app/main.py - POS application → User administration: creates
frontend/app/main.py - Login screen → HTTP API client: calls
frontend/app/views/login_view.py - Sales terminal → HTTP API client: calls
frontend/app/views/pos_terminal_view.py - Cash screen → HTTP API client: calls
frontend/app/views/cash_register_view.py - Products, customers, reports → HTTP API client: calls
frontend/app/views/secondary_views.py - User administration → HTTP API client: calls
frontend/app/views/users_view.py - HTTP API client → Authentication routes: HTTP requests
README.md - HTTP API client → Cash routes: HTTP requests
README.md - HTTP API client → Product routes: HTTP requests
README.md - HTTP API client → Report routes: HTTP requests
README.md - HTTP API client → Sales routes: HTTP requests
README.md - HTTP API client → Customer routes: HTTP requests
README.md - HTTP API client → User routes: HTTP requests
README.md - Authentication routes → User administration: delegates
backend/app/routers/auth.py - Authentication routes → Password and token security: validates session
backend/app/routers/auth.py - Cash routes → Cash operations: delegates
backend/app/routers/cash_register.py - Product routes → Product catalog: delegates
backend/app/routers/products.py - Report routes → Sales and stock reports: delegates
backend/app/routers/reports.py - Sales routes → Sale processing: delegates
- Customer routes → Customer management: delegates
- User routes → User administration: delegates
- Cash operations → POS data models: uses models
backend/app/services/cash_register_service.py - Product catalog → POS data models: uses models
backend/app/services/product_service.py - Customer management → POS data models: uses models
backend/app/services/customer_service.py - Sale processing → POS data models: uses models
backend/app/services/sale_service.py - Sales and stock reports → POS data models: queries models
backend/app/services/report_service.py - User administration → POS data models: uses models
backend/app/services/user_service.py - Database setup and sessions → User administration: seeds users
backend/app/core/database.py - Database setup and sessions → SQLite or PostgreSQL: connects
backend/app/core/database.py - Cash operations → Database setup and sessions: uses sessions
- Product catalog → Database setup and sessions: uses sessions
- Customer management → Database setup and sessions: uses sessions
- Sale processing → Database setup and sessions: uses sessions
- Sales and stock reports → Database setup and sessions: uses sessions
- User administration → Database setup and sessions: uses sessions
backend/app/core/database.py