How mielglitx/lokalex-complete-tool-kit works
Lokalex is a role-based delivery and store-operations web app. Its user journey begins with role/session routing, then leads customers to browse stores and place orders, merchants to manage store operations, and riders/admins to coordinate delivery and staffing. Shared real-time data, offline persistence, and communications support these workflows. The README is empty; the graph uses the source index and excerpts provided, so it includes documented feature areas but omits unverified internal call chains.
Main entry points: appBootstrap.js Bootstrap and routing · firebase.js Firebase data proxy · rosterAccounts.js Rider roster · state.js Shared app state
Components 24
App foundation
- Bootstrap and routing
src/app/appBootstrap.js - Realtime listeners
src/app/appListeners.js - App monitors
src/app/appMonitors.js - Push notifications
src/app/appPush.js - Role authentication
src/features/auth/authUtils.js - Notifications and modals
src/ui/notifications.js - View router
src/ui/router.js
Customer commerce
- Storefront and orders
src/features/customer/customerStorefront.js - Customer menu catalog
src/features/customer/customerMenuCatalog.js - Cart and checkout
src/features/cart.js - Order wizard
src/features/wizard.js
Store and rider operations
- Store directory
src/features/directory/directoryUi.js - Merchant store hub
src/features/storeHub/storeMenu.js - Rider roster
src/features/roster/rosterAccounts.js - Commissions
src/features/commission/commissionUI.js - Advanced orders
src/features/advancedOrders/advancedOrdersUI.js
Delivery coordination
- Maps and tracking
src/features/maps.js - Live tracker
src/features/liveTracker.js - Chat and team comms
src/features/chat/index.js
Shared services
- Shared app state
src/store/state.js - Firebase data proxy
src/config/firebase.js - Offline storage
src/utils/storageEngine.js
Other components
- App users
- Firebase service
Connections 23
- App users → Bootstrap and routing: opens app
src/app/appBootstrap.js - Bootstrap and routing → View router: routes views
src/app/appBootstrap.js - Bootstrap and routing → Customer menu catalog: loads public catalog
src/app/appBootstrap.js - Bootstrap and routing → App monitors: starts monitors
src/app/appBootstrap.js - Bootstrap and routing → Push notifications: registers push
src/app/appBootstrap.js - Bootstrap and routing → Rider roster: loads cached roster
src/app/appBootstrap.js - Bootstrap and routing → Shared app state: uses app state
src/app/appBootstrap.js - Realtime listeners → Firebase data proxy: subscribes to data
src/app/appListeners.js - Realtime listeners → Rider roster: listens for swaps
src/app/appListeners.js - Realtime listeners → Notifications and modals: alerts blocked users
src/app/appListeners.js - Firebase data proxy → Firebase service: syncs data
src/config/firebase.js - Firebase data proxy → Offline storage: queues offline writes
- Store directory → Offline storage: persists directory cache
- Storefront and orders → Shared app state: uses shared state
src/features/customer/customerStorefront.js - Chat and team comms → Shared app state: uses shared state
src/features/chat/index.js - Rider roster → Shared app state: uses shared state
src/features/roster/rosterAccounts.js - Merchant store hub → Shared app state: uses shared state
- Role authentication → Firebase data proxy: authenticates users
src/features/auth/authCustomer.js - Storefront and orders → Firebase data proxy: loads storefront data
src/features/customer/customerStorefront.js - Rider roster → Firebase data proxy: manages roster data
src/features/roster/rosterAccounts.js - Chat and team comms → Rider roster: checks booking limits
src/features/chat/index.js - View router → Notifications and modals: shows access alerts
src/ui/router.js - Merchant store hub → Storefront and orders: previews menu