How ztrebo14/kabarako-shop works
Kabarako Shop is a coffee-inventory management app. A shop operator uses the React interface to view and sort coffee items, add or edit item details, delete entries, and order stock. The routed pages call shared item state, which loads and writes the coffeeList collection in Firestore; ordering updates stock transactionally. The client also initializes Firebase Analytics and Auth, while server/index.js independently initializes Firebase and observes auth state. The README is empty, so capabilities and relationships here are based on the supplied source excerpts; no server-to-client API is shown.
Main entry points: App.jsx Routes and provider · ItemContext.jsx Item operations · DisplayItem.jsx Browse and order · Root.jsx Root layout
Components 14
React application
- React entry
client/src/main.jsx - Routes and provider
client/src/router/App.jsx - Root layout
client/src/router/Root.jsx - Navigation
client/src/components/NavBar.jsx
Item workflows
- Browse and order
client/src/pages/DisplayItem.jsx - Add coffee
client/src/pages/AddItem.jsx - Edit coffee
client/src/pages/EditItem.jsx - Dashboard page
client/src/pages/Dashboard.jsx
Inventory state
- Item operations
client/src/contexts/ItemContext.jsx
Firebase services
- Client Firebase setup
client/src/firebase.js - Server Firebase setup
server/index.js - Firestore
Other components
- Shop operator
- Firebase platform
Connections 18
- Shop operator → React entry: uses
- React entry → Routes and provider: renders
client/src/main.jsx - Routes and provider → Root layout: routes to
client/src/router/App.jsx - Routes and provider → Browse and order: routes to
client/src/router/App.jsx - Routes and provider → Add coffee: routes to
client/src/router/App.jsx - Routes and provider → Edit coffee: routes to
client/src/router/App.jsx - Root layout → Navigation: renders
client/src/router/Root.jsx - Root layout → Browse and order: outlet renders
client/src/router/Root.jsx - Browse and order → Item operations: uses item operations
client/src/pages/DisplayItem.jsx - Add coffee → Item operations: adds item
client/src/pages/AddItem.jsx - Edit coffee → Item operations: edits item
client/src/pages/EditItem.jsx - Item operations → Client Firebase setup: uses database setup
client/src/contexts/ItemContext.jsx - Client Firebase setup → Firestore: initializes
client/src/firebase.js - Item operations → Firestore: reads and writes
client/src/contexts/ItemContext.jsx - Client Firebase setup → Firebase platform: initializes services
client/src/firebase.js - Server Firebase setup → Firebase platform: initializes services
server/index.js - Navigation → Browse and order: links toward
- Navigation → Add coffee: links toward
client/src/components/NavBar.jsx