How hackieron/bahai works
This repository combines a household-oriented mobile app with a small Laravel API. The mobile workflow is tab-based access to home, bills, chores, and groceries; the sampled UI also includes a scene-based home experience and shared theme. The API’s demonstrated workflow is request entry, route dispatch to a health endpoint, and a health response. The listed domain screens are present, but their implementations were not sampled, and no mobile-to-API connection is evidenced. Arrows are limited to shown references or explicitly marked unverified.
Main entry points: HealthController.php Health endpoint · SceneScreen.tsx Scene screen · index.php HTTP entry · app.php Laravel bootstrap
Components 30
Mobile app
- App shell
mobile/src/app/_layout.tsx - Tab navigation
mobile/src/app/(tabs)/_layout.tsx - Home screen
mobile/src/app/(tabs)/index.tsx - Bills screen
mobile/src/app/(tabs)/bills.tsx - Chores screen
mobile/src/app/(tabs)/chores.tsx - Groceries screen
mobile/src/app/(tabs)/groceries.tsx - Home demo
mobile/src/features/home/HomeDemo.tsx - Query helper
mobile/src/lib/query.ts - Secure storage
mobile/src/lib/secure-store.ts
Scene interface
- Scene screen
mobile/src/components/SceneScreen.tsx - Scene renderer
mobile/src/scene/Scene.tsx - Scene sizing context
mobile/src/scene/SceneContext.ts - Scene object
mobile/src/scene/SceneObject.tsx - Lamp object
mobile/src/scene/objects/Lamp.tsx
Shared styling
- App text
mobile/src/components/AppText.tsx - Custom tab bar
mobile/src/components/TabBar.tsx - Theme provider
mobile/src/theme/ThemeProvider.tsx - Theme tokens
mobile/src/theme/tokens.ts
Laravel API
- HTTP entry
api/public/index.php - Laravel bootstrap
api/bootstrap/app.php - API routes
api/routes/api.php - Health endpoint
api/app/Http/Controllers/Api/V1/HealthController.php - Base controller
api/app/Http/Controllers/Controller.php - Health response
api/app/Http/Resources/HealthResource.php - Rate limiting
api/app/Providers/AppServiceProvider.php - Provider registry
api/bootstrap/providers.php - User model
api/app/Models/User.php - User factory
api/database/factories/UserFactory.php
Other components
- Household user
- API caller
Connections 15
- Household user → Tab navigation: uses tabs
- Household user → HTTP entry: sends request
- Home demo → Scene screen: may present
- Scene screen → App text: renders
mobile/src/components/SceneScreen.tsx - Scene renderer → Scene sizing context: reads sizing
mobile/src/scene/Scene.tsx - Lamp object → Scene object: uses object
mobile/src/scene/objects/Lamp.tsx - Custom tab bar → App text: renders
mobile/src/components/TabBar.tsx - Theme provider → Theme tokens: uses tokens
mobile/src/theme/ThemeProvider.tsx - HTTP entry → Laravel bootstrap: bootstraps
api/public/index.php - Laravel bootstrap → API routes: registers routes
api/bootstrap/app.php - API routes → Health endpoint: routes to
api/routes/api.php - Health endpoint → Base controller: extends
api/app/Http/Controllers/Api/V1/HealthController.php - Health endpoint → Health response: returns
api/app/Http/Controllers/Api/V1/HealthController.php - Provider registry → Rate limiting: registers
api/bootstrap/providers.php - User factory → User model: creates
api/database/factories/UserFactory.php