How kcsimfinity/saripos works
SariPOS is a mobile point-of-sale and store-management app. A cashier works through the POS screen to build a cart and check out by cash or customer credit; POSContext coordinates checkout and refreshes app state through the database service. Other screens cover inventory and categories, sales, customer balances, cash-drawer shifts, and settings. The excerpts confirm the app shell, shared state, SQLite setup, and some database operations; wiring for unsampled screens and modals is left unspecified.
Main entry points: index.tsx SariPOS app · POSContext.tsx POS context · databaseService.ts Database service · db.ts SQLite database
Components 18
App shell
- Expo entry
src/app/index.tsx - SariPOS app
src/SariPos/app/index.tsx - Navigation bar
src/SariPos/components/NavigationBar.tsx - POS context
src/SariPos/context/POSContext.tsx
Sales and inventory
- POS screen
src/SariPos/screens/POSScreen.tsx - Checkout modal
src/SariPos/components/CheckoutModal.tsx - Receipt modal
src/SariPos/components/ReceiptModal.tsx - Inventory screen
src/SariPos/screens/InventoryScreen.tsx - Category products
src/SariPos/screens/CategoryProductsScreen.tsx - Product editor
src/SariPos/components/ProductModal.tsx - Sales screen
src/SariPos/screens/SalesScreen.tsx
Store operations
- Customer balances
src/SariPos/screens/UtangScreen.tsx - Cash drawer
src/SariPos/screens/CashDrawerScreen.tsx - Store settings
src/SariPos/screens/SettingsScreen.tsx
Persistence
- Database service
src/SariPos/database/databaseService.ts - SQLite database
src/SariPos/database/db.ts
Other components
- Cashier
- Expo SQLite
Connections 17
- Cashier → Expo entry: opens app
- Expo entry → SariPOS app: renders
- SariPOS app → POS context: provides state
- SariPOS app → Navigation bar: renders
- SariPOS app → POS screen: selects screen
- SariPOS app → Inventory screen: selects screen
- SariPOS app → Category products: selects screen
- SariPOS app → Sales screen: selects screen
- SariPOS app → Customer balances: selects screen
- SariPOS app → Cash drawer: selects screen
- SariPOS app → Store settings: selects screen
- Product editor → Database service: reads/writes products
- Product editor → POS context: refreshes inventory
- POS context → SQLite database: initializes
- POS context → Database service: loads and updates
- Database service → SQLite database: queries and writes
- SQLite database → Expo SQLite: opens database