How jamir4270/auj-store works
AUJ Store is a retail POS and store-operations application: staff sign in, manage stock, scan or select products, complete orders (including print-service jobs and partial payments), then review receipts and business performance. Inventory forms call server actions; the sampled POS interface submits orders and can look up unknown barcodes; the sampled analytics chart fetches date-range orders. The README documents other product capabilities, but their internal wiring is not shown in the excerpts, so those links are omitted. Supabase is the documented auth/database backend.
Main entry points: order-page-interface.tsx POS checkout · app/page.tsx Sign in · orders/page.tsx Orders page · inventory/page.tsx Inventory page
Components 18
Access and Auth
- Sign in
app/page.tsx - Registration
app/(auth)/sign-up/page.tsx - Email confirmation
app/(auth)/confirm/route.ts
Sales and Services
- POS checkout
components/orders/order-page-interface.tsx - Orders page
app/(dashboard)/orders/page.tsx - Print jobs
app/(dashboard)/print-jobs/page.tsx
Inventory
- Inventory page
app/(dashboard)/inventory/page.tsx - Product forms
components/inventory/forms.tsx
Records and Insights
- Transaction history
app/(dashboard)/history/page.tsx - Analytics dashboard
app/(dashboard)/analytics/page.tsx - Sales trend chart
components/dashboard/metric-trend-chart.tsx
Application Backend
- Inventory actions
lib/actions/inventory.actions.ts - Order actions
lib/actions/orders.actions.ts - Order data access
lib/data.ts - Barcode lookup
lib/services/barcode-lookup.service.ts
Other components
- Store staff
- Supabase
- Open Food Facts
Connections 20
- Store staff → Sign in: signs in
- Store staff → Registration: registers
- Sign in → Supabase: checks claims
- Email confirmation → Supabase: verifies OTP
- Store staff → Orders page: opens checkout
- Orders page → POS checkout: renders
- POS checkout → Order actions: submits order
- Order actions → Supabase: records order
- POS checkout → Barcode lookup: looks up barcode
- Barcode lookup → Open Food Facts: fetches details
- Store staff → Inventory page: manages stock
- Inventory page → Product forms: provides forms
- Product forms → Inventory actions: adds or edits
- Inventory actions → Supabase: updates products
- Store staff → Print jobs: configures services
- Store staff → Transaction history: reviews transactions
- Store staff → Analytics dashboard: reviews performance
- Analytics dashboard → Sales trend chart: shows trends
- Sales trend chart → Order data access: fetches date range
- Order data access → Supabase: reads orders