How jackfrt/minimarket works
Minimarket Cloud is a multi-company minimarket management SaaS with a React interface and Go service. The user signs in, selects a company, and works across sales, catalog, inventory, HR, and dashboard views; the frontend sends company-scoped requests to the API. The Go application layer contains business operations for these domains and uses repository methods, with JSON and in-memory repository implementations present in the tree. Backend wiring between the HTTP handlers, service, and concrete repositories is not established by the available excerpts, so those connections are omitted.
Main entry points: App.jsx App shell · api.js API client · servicio.go Application service · interfaz_http.go HTTP API
Components 18
Web application
- App shell
frontend/src/App.jsx - Sign-in
frontend/src/components/AuthModal.jsx - API client
frontend/src/api.js - Dashboard
frontend/src/components/DashboardView.jsx - POS sales
frontend/src/components/PosSalesView.jsx - Catalog
frontend/src/components/CatalogView.jsx - Inventory
frontend/src/components/InventoryView.jsx - Human resources
frontend/src/components/HrView.jsx - Tenant admin
frontend/src/components/ArchitectureSaasView.jsx
Go application
- HTTP API
internal/presentation/interfaz_http.go - Application service
internal/application/servicio.go - API startup
cmd/api/principal.go - Embedded page
internal/presentation/pagina.go
Persistence
- JSON repository
internal/infrastructure/repositorio_json.go - Memory repository
internal/infrastructure/repositorio_memoria.go - Seed data
internal/infrastructure/semilla.go
Business model
- Domain entities
internal/domain/entidades.go
Other components
- Staff user
Connections 21
- Staff user → App shell: uses
- App shell → Sign-in: renders
frontend/src/App.jsx - App shell → Dashboard: renders
frontend/src/App.jsx - App shell → POS sales: renders
frontend/src/App.jsx - App shell → Catalog: renders
frontend/src/App.jsx - App shell → Inventory: renders
frontend/src/App.jsx - App shell → Human resources: renders
frontend/src/App.jsx - App shell → Tenant admin: renders
frontend/src/App.jsx - App shell → API client: loads data
frontend/src/App.jsx - Sign-in → API client: requests login
frontend/src/components/AuthModal.jsx - Catalog → API client: requests updates
frontend/src/components/CatalogView.jsx - POS sales → API client: submits sale
frontend/src/components/PosSalesView.jsx - Inventory → API client: records movement
frontend/src/components/InventoryView.jsx - Human resources → API client: requests HR
frontend/src/components/HrView.jsx - Tenant admin → API client: manages tenants
frontend/src/components/ArchitectureSaasView.jsx - API client → HTTP API: sends HTTP
- API startup → HTTP API: starts handlers
- HTTP API → Application service: dispatches requests
- Application service → Domain entities: uses domain types
internal/application/servicio.go - Application service → JSON repository: uses repository
- Application service → Memory repository: uses repository