How escola-nova-era/babytracker works
Baby Tracker is a cross-platform app for caregivers to record baby-care routines and review activity and insights, backed by an API. The tree shows Android, iOS, and backend product areas; sampled code confirms authentication, profile retrieval, iOS network requests, and local tracking persistence. The graph preserves other documented/tree-visible features, but omits uncertain client-to-server and screen-to-view-model wiring where source excerpts do not establish calls.
Main entry points: app.ts Express API · profile.routes.ts Profile route · auth.service.ts Account authentication · profile.controller.ts Profile handler
Components 29
Mobile apps
- Android app entry
android/app/src/main/java/com/escolanovaeratech/babytracker/MainActivity.kt - Home and quick actions
android/app/src/main/java/com/escolanovaeratech/babytracker/home/ui/HomeScreenUI.kt - Care timeline
android/app/src/main/java/com/escolanovaeratech/babytracker/timeline/ui/TimelineScreen.kt - Care insights
android/app/src/main/java/com/escolanovaeratech/babytracker/insights/ui/InsightsScreen.kt - Login
android/app/src/main/java/com/escolanovaeratech/babytracker/login/ui/LoginScreen.kt - Profile and settings
android/app/src/main/java/com/escolanovaeratech/babytracker/profile/ui/ProfileScreen.kt - iOS app entry
ios/BabyTracker/BabyTrackerApp.swift - Home tracking
ios/BabyTracker/Screens/Home/HomeView.swift - Care tracking
ios/BabyTracker/Screens/Tracking/TrackingView.swift - Care insights
ios/BabyTracker/Screens/Insights/InsightsView.swift - Login and registration
ios/BabyTracker/Screens/Login/LoginView.swift - Profile and settings
ios/BabyTracker/Screens/Profile/ProfileView.swift
Backend API
- Express API
backend/src/app.ts - Authentication routes
backend/src/modules/auth/auth.routes.ts - Authentication handlers
backend/src/modules/auth/auth.controller.ts - Account authentication
backend/src/modules/auth/auth.service.ts - Profile route
backend/src/modules/profile/profile.routes.ts - Profile handler
backend/src/modules/profile/profile.controller.ts - Profile lookup
backend/src/modules/profile/profile.service.ts - Insights API
backend/src/modules/insights/insights.routes.ts - Activity API
backend/src/modules/activity/activity.routes.ts - API server
backend/src/server.ts
Persistence and network
- Local event database
android/app/src/main/java/com/escolanovaeratech/babytracker/data/local/BabyTrackerDatabase.kt - Authentication service
ios/BabyTracker/Services/Auth/AuthService.swift - HTTP client
ios/BabyTracker/Services/Network/NetworkClient.swift - Keychain token storage
ios/BabyTracker/Services/Auth/TokenStorage.swift - Tracking repository
ios/BabyTracker/Services/Persistence/TrackingRepository.swift - Prisma data store
backend/src/lib/prisma.ts
Other components
- Caregiver
Connections 14
- Caregiver → Android app entry: opens app
- Caregiver → iOS app entry: opens app
- API server → Express API: starts
- Express API → Authentication routes: mounts routes
- Express API → Profile route: mounts routes
- Express API → Insights API: mounts routes
- Express API → Activity API: mounts routes
- Profile route → Profile handler: dispatches
- Profile route → Profile lookup: protects with auth
- Profile handler → Profile lookup: gets profile
- Authentication handlers → Account authentication: handles account actions
- Account authentication → Prisma data store: reads and writes
- Authentication service → HTTP client: sends requests
- Tracking repository → Care tracking: stores tracking data