# iuliasapungiu/-studenthome architecture

> Architecture diagram of the GitHub repository iuliasapungiu/-studenthome, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iuliasapungiu/-studenthome
- Repository: https://github.com/iuliasapungiu/-studenthome

## Overview

This is an Expo-based rental marketplace prototype for students and landlords. The principal student journey is to browse public listings, inspect a property, request a viewing or submit an application, then coordinate through messaging; account and verification features gate some actions. Landlords have separate listing and viewing surfaces. Repository evidence shows demo/mock data and local persistence, not a completed production backend. The README describes only the Expo starter, so product capabilities are inferred from the source tree and sampled references; unsampled screens and provider internals limit certainty about their wiring.

Main entry points: [`src/app/property/[id].tsx`](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/property/%5Bid%5D.tsx) (Property details), [`src/services/index.ts`](https://github.com/iuliasapungiu/-studenthome/blob/main/src/services/index.ts) (Demo service wiring), [`src/app/(student)/search.tsx`](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(student)/search.tsx) (Search listings), [`src/features/applications/ApplicationsProvider.tsx`](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/applications/ApplicationsProvider.tsx) (Rental applications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Accounts and access"]
  node_auth["Sign in and registration<br/>[login.tsx]"]
  node_session["Session and account"]
  node_verification["Identity verification"]
end

subgraph group_discovery["Listing discovery"]
  node_search["Search listings<br/>[search.tsx]"]
  node_search_state["Search state<br/>[SearchProvider.tsx]"]
  node_property_detail["Property details<br/>[&#91;id&#93;.tsx]"]
  node_saved["Saved listings<br/>[SavedProvider.tsx]"]
end

subgraph group_engagement["Rental engagement"]
  node_viewings["Viewing requests"]
  node_viewing_store["Viewing repository"]
  node_applications["Rental applications"]
  node_application_store["Application repository"]
  node_messages["Conversations"]
  node_message_store["Conversation repository"]
  node_notifications["Notifications"]
  node_applications_screen["Application inbox<br/>[applications.tsx]"]
end

subgraph group_landlord["Landlord workspace"]
  node_landlord_listings["Manage listings<br/>[listings.tsx]"]
  node_landlord_viewings["Manage viewings<br/>[viewings.tsx]"]
  node_landlord_messages["Landlord messages<br/>[messages.tsx]"]
end

subgraph group_foundation["Data and services"]
  node_property_feed["Property catalog<br/>[index.ts]"]
  node_mock_properties["Demo listing repository<br/>[mockRepository.ts]"]
  node_mock_services["Demo service wiring<br/>[index.ts]"]
  node_local_storage[("Local mock persistence<br/>[keyValue.ts]")]
end

node_student(("Student"))
node_landlord_user(("Landlord"))

node_student -->|"signs up"| node_auth
node_auth -.->|"authenticates"| node_session
node_session -.->|"gates actions"| node_verification
node_student -.->|"searches homes"| node_search
node_search -->|"uses search state"| node_search_state
node_search -->|"queries listings"| node_property_feed
node_search -.->|"opens listing"| node_property_detail
node_property_feed -->|"creates repository"| node_mock_properties
node_student -.->|"inspects listing"| node_property_detail
node_property_detail -.->|"saves listing"| node_saved
node_property_detail -.->|"requests viewing"| node_viewings
node_property_detail -.->|"starts application"| node_applications
node_viewings -.->|"persists requests"| node_viewing_store
node_applications_screen -->|"reads applications"| node_applications
node_applications_screen -->|"loads listing details"| node_property_feed
node_applications -.->|"stores applications"| node_application_store
node_application_store -->|"records status alerts"| node_notifications
node_student -.->|"messages landlord"| node_messages
node_messages -.->|"stores conversations"| node_message_store
node_landlord_user -.->|"manages homes"| node_landlord_listings
node_landlord_user -.->|"handles requests"| node_landlord_viewings
node_landlord_user -.->|"opens conversations"| node_landlord_messages
node_mock_services -->|"configures repository"| node_application_store
node_mock_services -->|"configures repository"| node_message_store
node_mock_services -->|"configures repository"| node_viewing_store
node_mock_services -.->|"uses mock storage"| node_local_storage

click node_auth "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(auth)/login.tsx"
click node_session "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/session/SessionProvider.tsx"
click node_verification "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/verification/verificationService.ts"
click node_search "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(student)/search.tsx"
click node_search_state "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/search/SearchProvider.tsx"
click node_property_detail "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/property/%5Bid%5D.tsx"
click node_property_feed "https://github.com/iuliasapungiu/-studenthome/blob/main/src/data/index.ts"
click node_mock_properties "https://github.com/iuliasapungiu/-studenthome/blob/main/src/data/mockRepository.ts"
click node_saved "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/saved/SavedProvider.tsx"
click node_viewings "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/viewings/ViewingsProvider.tsx"
click node_viewing_store "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/viewings/mockViewingRepository.ts"
click node_applications "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/applications/ApplicationsProvider.tsx"
click node_application_store "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/applications/mockApplicationRepository.ts"
click node_messages "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/messaging/MessagingProvider.tsx"
click node_message_store "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/messaging/mockConversationRepository.ts"
click node_notifications "https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/notifications/notificationRepository.ts"
click node_landlord_listings "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/listings.tsx"
click node_landlord_viewings "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/viewings.tsx"
click node_landlord_messages "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/messages.tsx"
click node_mock_services "https://github.com/iuliasapungiu/-studenthome/blob/main/src/services/index.ts"
click node_local_storage "https://github.com/iuliasapungiu/-studenthome/blob/main/src/storage/keyValue.ts"
click node_applications_screen "https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/applications.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth,node_session,node_verification toneBlue
class node_search,node_search_state,node_property_detail,node_saved toneAmber
class node_viewings,node_viewing_store,node_applications,node_application_store,node_messages,node_message_store,node_notifications,node_applications_screen toneMint
class node_landlord_listings,node_landlord_viewings,node_landlord_messages toneRose
class node_property_feed,node_mock_properties,node_mock_services,node_local_storage,node_student,node_landlord_user toneIndigo
```

## Components

### Accounts and access

- [Sign in and registration](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(auth)/login.tsx): `src/app/(auth)/login.tsx`
- [Session and account](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/session/SessionProvider.tsx): `src/features/session/SessionProvider.tsx`
- [Identity verification](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/verification/verificationService.ts): `src/features/verification/verificationService.ts`

### Listing discovery

- [Search listings](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(student)/search.tsx): `src/app/(student)/search.tsx`
- [Search state](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/search/SearchProvider.tsx): `src/features/search/SearchProvider.tsx`
- [Property details](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/property/%5Bid%5D.tsx): `src/app/property/[id].tsx`
- [Saved listings](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/saved/SavedProvider.tsx): `src/features/saved/SavedProvider.tsx`

### Rental engagement

- [Viewing requests](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/viewings/ViewingsProvider.tsx): `src/features/viewings/ViewingsProvider.tsx`
- [Viewing repository](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/viewings/mockViewingRepository.ts): `src/features/viewings/mockViewingRepository.ts`
- [Rental applications](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/applications/ApplicationsProvider.tsx): `src/features/applications/ApplicationsProvider.tsx`
- [Application repository](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/applications/mockApplicationRepository.ts): `src/features/applications/mockApplicationRepository.ts`
- [Conversations](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/messaging/MessagingProvider.tsx): `src/features/messaging/MessagingProvider.tsx`
- [Conversation repository](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/messaging/mockConversationRepository.ts): `src/features/messaging/mockConversationRepository.ts`
- [Notifications](https://github.com/iuliasapungiu/-studenthome/blob/main/src/features/notifications/notificationRepository.ts): `src/features/notifications/notificationRepository.ts`
- [Application inbox](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/applications.tsx): `src/app/applications.tsx`

### Landlord workspace

- [Manage listings](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/listings.tsx): `src/app/(landlord)/listings.tsx`
- [Manage viewings](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/viewings.tsx): `src/app/(landlord)/viewings.tsx`
- [Landlord messages](https://github.com/iuliasapungiu/-studenthome/blob/main/src/app/(landlord)/messages.tsx): `src/app/(landlord)/messages.tsx`

### Data and services

- [Property catalog](https://github.com/iuliasapungiu/-studenthome/blob/main/src/data/index.ts): `src/data/index.ts`
- [Demo listing repository](https://github.com/iuliasapungiu/-studenthome/blob/main/src/data/mockRepository.ts): `src/data/mockRepository.ts`
- [Demo service wiring](https://github.com/iuliasapungiu/-studenthome/blob/main/src/services/index.ts): `src/services/index.ts`
- [Local mock persistence](https://github.com/iuliasapungiu/-studenthome/blob/main/src/storage/keyValue.ts): `src/storage/keyValue.ts`

### Other components

- **Student**
- **Landlord**

## Connections

- Student → Sign in and registration: signs up
- Sign in and registration → Session and account: authenticates
- Session and account → Identity verification: gates actions
- Student → Search listings: searches homes
- Search listings → Search state: uses search state (evidence: `src/app/(student)/search.tsx`)
- Search listings → Property catalog: queries listings (evidence: `src/app/(student)/search.tsx`)
- Search listings → Property details: opens listing
- Property catalog → Demo listing repository: creates repository (evidence: `src/data/index.ts`)
- Student → Property details: inspects listing
- Property details → Saved listings: saves listing
- Property details → Viewing requests: requests viewing
- Property details → Rental applications: starts application
- Viewing requests → Viewing repository: persists requests
- Application inbox → Rental applications: reads applications (evidence: `src/app/applications.tsx`)
- Application inbox → Property catalog: loads listing details (evidence: `src/app/applications.tsx`)
- Rental applications → Application repository: stores applications
- Application repository → Notifications: records status alerts (evidence: `src/features/applications/mockApplicationRepository.ts`)
- Student → Conversations: messages landlord
- Conversations → Conversation repository: stores conversations
- Landlord → Manage listings: manages homes
- Landlord → Manage viewings: handles requests
- Landlord → Landlord messages: opens conversations
- Demo service wiring → Application repository: configures repository (evidence: `src/services/index.ts`)
- Demo service wiring → Conversation repository: configures repository (evidence: `src/services/index.ts`)
- Demo service wiring → Viewing repository: configures repository (evidence: `src/services/index.ts`)
- Demo service wiring → Local mock persistence: uses mock storage
