How ratmir26/startup works
Эсеп is a browser-based cash-register and stock-accounting MVP for cafés in Kyrgyzstan. The main workflow records a sale, automatically deducts recipe ingredients, signals low stock, and supports inventory counts that calculate discrepancies and estimated leakage in soms. The app also provides stock movements, shift history, role restrictions, and a dashboard with revenue, COGS, and food-cost metrics. The source excerpts show the app’s state and domain logic; some screen and shift behavior is documented in the README, so unsampled implementation details are not expanded.
Main entry points: app.js App controller · domain.js Accounting rules
Components 12
Café operations
- App controller
app/app.js - Cash register
app/app.js - Stock control
app/app.js - Stock ledger
app/app.js
Accounting and insights
- Inventory count
app/app.js - Discrepancy and leakage
app/domain.js - Sales and cost metrics
app/domain.js - Dashboard and history
app/app.js - Accounting rules
app/domain.js
State and persistence
- App state
app/app.js - Browser localStorage
Other components
- Café staff
Connections 17
- Café staff → App controller: uses
README.md - App controller → Cash register: renders
app/app.js - App controller → Stock control: renders
app/app.js - App controller → Inventory count: renders
app/app.js - App controller → Dashboard and history: renders
app/app.js - Cash register → Accounting rules: checks ingredients
app/app.js - Cash register → App state: records sales
README.md - Stock control → Accounting rules: checks low stock
app/app.js - Stock control → Stock ledger: shows entries
app/app.js - Inventory count → Accounting rules: calculates counts
app/app.js - Inventory count → Discrepancy and leakage: reports discrepancy
README.md - Dashboard and history → Sales and cost metrics: shows metrics
app/app.js - Dashboard and history → Discrepancy and leakage: shows leakage
README.md - Accounting rules → Sales and cost metrics: calculates
app/domain.js - Accounting rules → Discrepancy and leakage: calculates
app/domain.js - App controller → App state: manages
app/app.js - App state → Browser localStorage: reads and writes
app/app.js