How gauravkh-sys/grocerystoremanagement works
Freshly is a grocery storefront and lightweight inventory manager. Customers browse and filter products, manage a basket, and place demo orders; managers handle inventory, categories, units, orders, requests, and sales. The README says the shipped demo stores records in browser local storage and has no backend synchronization. Netlify API functions and a database schema are also present, but the sampled evidence does not show the frontend using them, so that server-side branch is kept separate. Some unsampled feature connections are omitted rather than inferred.
Main entry points: grocery-store.service.ts Store State · app.ts Store App · index.ts Database Client · http.ts HTTP Helpers
Components 26
Storefront
- Store App
src/app/app.ts - Product Card
src/app/components/product-card/product-card.ts - Product Requests
src/app/components/product-request/product-request.ts - Customer Login
src/app/components/login-screen/login-screen.ts
Store Management
- Inventory
src/app/components/inventory-panel/inventory-panel.ts - Category Management
src/app/components/category-master/category-master.ts - Unit Management
src/app/components/unit-master/unit-master.ts - Order Management
src/app/components/order-management/order-management.ts - Sales Dashboard
src/app/components/sales-dashboard/sales-dashboard.ts
Demo State
- Store State
src/app/services/grocery-store.service.ts - Browser Storage
- Language
src/app/services/language.service.ts - Theme
src/app/services/theme.service.ts - Product Catalog
src/app/data/grocery-data.ts - Category Data
src/app/data/category-data.ts - Product Icons
src/app/data/product-icons.ts
Netlify API
- Category API
netlify/functions/categories.mts - Product API
netlify/functions/products.mts - Order API
netlify/functions/orders.mts - Request API
netlify/functions/product-requests.mts - Unit API
netlify/functions/units.mts - HTTP Helpers
netlify/lib/http.ts
Database
- Database Client
db/index.ts - Store Schema
db/schema.ts
Other components
- Customer
- Manager
Connections 31
- Customer → Store App: browses and orders
README.md - Manager → Store App: manages store
README.md - Store App → Product Card: renders
src/app/app.ts - Store App → Product Requests: renders
src/app/app.ts - Store App → Customer Login: renders
src/app/app.ts - Store App → Store State: creates orders and basket items
src/app/app.ts - Store App → Language: translates interface
src/app/app.ts - Store App → Theme: uses theme
src/app/app.ts - Inventory → Store State: edits products
src/app/components/inventory-panel/inventory-panel.ts - Inventory → Product Icons: offers icons
src/app/components/inventory-panel/inventory-panel.ts - Product Card → Store State: updates basket
src/app/components/product-card/product-card.ts - Product Requests → Store State: submits requests
src/app/components/product-request/product-request.ts - Customer Login → Store State: checks accounts
src/app/components/login-screen/login-screen.ts - Category Management → Store State: manages categories
src/app/components/category-master/category-master.ts - Category Management → Category Data: uses defaults
src/app/components/category-master/category-master.ts - Unit Management → Store State: manages units
src/app/components/unit-master/unit-master.ts - Order Management → Store State: manages orders
src/app/components/order-management/order-management.ts - Sales Dashboard → Store State: reads sales data
src/app/components/sales-dashboard/sales-dashboard.ts - Store State → Browser Storage: persists snapshot
src/app/services/grocery-store.service.ts - Store State → Product Catalog: loads initial catalog
src/app/services/grocery-store.service.ts - Category API → Database Client: queries
netlify/functions/categories.mts - Product API → Database Client: queries
netlify/functions/products.mts - Order API → Database Client: reads and writes
netlify/functions/orders.mts - Request API → Database Client: queries
netlify/functions/product-requests.mts - Unit API → Database Client: queries
netlify/functions/units.mts - Category API → HTTP Helpers: uses helpers
netlify/functions/categories.mts - Product API → HTTP Helpers: uses helpers
netlify/functions/products.mts - Order API → HTTP Helpers: uses helpers
netlify/functions/orders.mts - Request API → HTTP Helpers: uses helpers
netlify/functions/product-requests.mts - Unit API → HTTP Helpers: uses helpers
netlify/functions/units.mts - Database Client → Store Schema: registers schema
db/index.ts