How omarhatemsobhymostafa/mohemafinal works
Femora is an Arabic pregnancy companion whose main workflow is account access, pregnancy tracking, and browsing weekly pregnancy content backed by a separate Express API. Auth state and shared API transport support the dashboard, week selector, and admin content editor; the README documents backend registration, login, tracking, and weekly content. Other documented or visible branches include AI-related UI/API, a pregnancy-journal product page, and Android APK installation. Some route and integration sources were not excerpted, so uncertain connections are left unasserted.
Main entry points: AuthProvider.tsx Auth session · api.ts API transport · dashboard/page.tsx Pregnancy dashboard · [id]/page.tsx Weekly content
Components 19
Entry and Account
- Welcome page
app/page.tsx - Sign-in and signup
app/components/auth/AuthForm.tsx - Google sign-in
app/components/auth/GoogleSignInButton.tsx - Auth session
app/components/auth/AuthProvider.tsx
Pregnancy Journey
- Pregnancy dashboard
app/dashboard/page.tsx - Week selector
app/components/pregnancy/WeekSelector.jsx - Weekly content
app/journey/[id]/page.tsx - Weekly content editor
app/panel/page.tsx
API and AI
- API transport
app/lib/api.ts - Femora backend
- Pregnancy AI UI
app/components/pregnancy/Ai.tsx - AI API route
app/api/ai/route.ts - AI service
Product and Android
- Pregnancy journal page
app/product/page.tsx - Android download
app/components/AndroidDownloadCard.tsx - APK installer bridge
app/lib/android-apk.ts - Android installer plugin
android/app/src/main/java/com/mohema/app/AndroidApkInstallerPlugin.java - Android activity
android/app/src/main/java/com/mohema/app/MainActivity.java
Other components
- Pregnant user
Connections 20
- Pregnant user → Welcome page: visits
- Welcome page → Auth session: checks session
app/page.tsx - Sign-in and signup → Auth session: submits credentials
app/components/auth/AuthForm.tsx - Sign-in and signup → Google sign-in: renders
app/components/auth/AuthForm.tsx - Auth session → API transport: requests account
app/components/auth/AuthProvider.tsx - API transport → Femora backend: sends requests
README.md - Pregnancy dashboard → Auth session: reads session
app/dashboard/page.tsx - Pregnancy dashboard → API transport: loads and saves
app/dashboard/page.tsx - Pregnancy dashboard → Pregnancy AI UI: renders
app/dashboard/page.tsx - Week selector → API transport: loads weeks
app/components/pregnancy/WeekSelector.jsx - Weekly content → Week selector: renders
app/journey/[id]/page.tsx - Weekly content → Pregnancy AI UI: renders
app/journey/[id]/page.tsx - Weekly content → Femora backend: fetches weekly content
README.md - Weekly content editor → Auth session: checks role
app/panel/page.tsx - Weekly content editor → API transport: edits weekly content
app/panel/page.tsx - Pregnancy AI UI → AI API route: requests AI
- AI API route → AI service: uses service
- Android download → APK installer bridge: uses installer helper
app/components/AndroidDownloadCard.tsx - Android activity → Android installer plugin: registers
android/app/src/main/java/com/mohema/app/MainActivity.java - APK installer bridge → Android installer plugin: invokes