How ahmedrah33m/midano3 works
Midan is presented as an Iraqi economic and professional platform, with a premium mobile design system and a substantial set of prototype screens. Its documented user journey spans onboarding and authentication into social discovery, professional networking, jobs, market information, learning, events, and wallet features. The tree also shows Next.js API routes and a Python API service; sampled Next.js handlers directly use shared authentication helpers and the database. UI-to-API wiring and Python service internals were not sampled, so those links are not asserted.
Main entry points: auth.ts Auth helpers · db.ts Application database · feed/route.ts Feed & post API · [id]/route.ts Post detail API
Components 22
Mobile Experience
- App entry
src/app/page.tsx - Prototype viewer
src/components/showcase/prototype-viewer.tsx - Onboarding & auth
src/components/screens/onboarding-auth.tsx - Feed screens
src/components/screens/home-feed.tsx - Profile screens
src/components/screens/profile-company-job-expert.tsx - Jobs & experts
src/components/screens/jobs-experts-extra.tsx - Economic screens
src/components/screens/dashboard-investment-training-events.tsx - Midan UI kit
src/components/midan-ui/index.tsx
Community & Careers
- Feed & post API
src/app/api/posts/feed/route.ts - Post detail API
src/app/api/posts/[id]/route.ts - Profile API
src/app/api/users/me/route.ts - Jobs API
src/app/api/jobs/route.ts - Experts API
src/app/api/experts/route.ts - Notifications API
src/app/api/notifications/route.ts
Economy & Learning
- Market dashboard API
src/app/api/economic/dashboard/route.ts - Events API
src/app/api/events/route.ts - Courses API
src/app/api/courses/route.ts - Wallet API
src/app/api/wallet/route.ts
API & Data
- Authentication API
src/app/api/auth/login/route.ts - Auth helpers
src/lib/auth.ts - Application database
src/lib/db.ts
Other components
- Platform user
Connections 21
- Platform user → App entry: opens
- Authentication API → Auth helpers: uses helpers
- Feed & post API → Auth helpers: uses helpers
- Post detail API → Auth helpers: uses helpers
- Profile API → Auth helpers: uses helpers
- Jobs API → Auth helpers: formats results
- Notifications API → Auth helpers: uses helpers
- Market dashboard API → Auth helpers: formats results
- Events API → Auth helpers: formats results
- Courses API → Auth helpers: formats results
- Wallet API → Auth helpers: uses helpers
- Feed & post API → Application database: reads and writes
- Post detail API → Application database: reads and updates
- Profile API → Application database: reads and writes
- Jobs API → Application database: reads
- Experts API → Application database: reads
- Notifications API → Application database: reads and updates
- Market dashboard API → Application database: reads
- Events API → Application database: reads
- Courses API → Application database: reads
- Wallet API → Application database: reads