How danishcodepy/wayhome works
WayHome combines property and student-housing discovery with owner listing submission, admin approval, rental applications, and role-based workspaces. The principal flow runs from search or owner submission through REST services to persistence; approval controls public visibility. The README documents the controller–service–repository backend and MySQL/email integrations, while sampled frontend code confirms map-search and manager-dashboard API calls. Some frontend and backend relationships are documented rather than source-sampled, so those edges cite the README and unsampled details are not inferred.
Main entry points: api.js REST client · PropertyController.java Property endpoints · service Domain services · repository Persistence repositories
Components 22
Web experience
- Routes and page shell
frontend/src/App.jsx - Property and map search
frontend/src/pages/MapSearch.jsx - Search controls and pricing
frontend/src/components/SearchPanel.jsx - Create listing
frontend/src/pages/ListProperty.jsx - Role dashboards
frontend/src/pages/dashboards/ManagerDashboard.jsx - REST client
frontend/src/services/api.js
Identity and access
- Login and registration
frontend/src/context/AuthContext.jsx - Account and password auth
backend/src/main/java/com/wayhome/service/AuthService.java - Email OTP verification
backend/src/main/java/com/wayhome/service/OtpService.java - JWT sessions
backend/src/main/java/com/wayhome/security/JwtUtil.java - Email delivery
Property lifecycle
- Property endpoints
backend/src/main/java/com/wayhome/controller/PropertyController.java - Listing and approval lifecycle
backend/src/main/java/com/wayhome/service/PropertyService.java - Property listing
backend/src/main/java/com/wayhome/model/Property.java
Rentals and operations
- Rental applications
backend/src/main/java/com/wayhome/controller/ApplicationController.java - Rental agreements
backend/src/main/java/com/wayhome/controller/AgreementController.java - Owner workspace actions
frontend/src/pages/dashboards/ManagerDashboard.jsx - Admin moderation
frontend/src/pages/dashboards/AdminDashboard.jsx
Backend and persistence
- Domain services
backend/src/main/java/com/wayhome/service - Persistence repositories
backend/src/main/java/com/wayhome/repository - MySQL
Other components
- Students, tenants, owners, admins
Connections 27
- Students, tenants, owners, admins → Routes and page shell: browse and manage
README.md - Routes and page shell → Property and map search: routes to
frontend/src/App.jsx - Property and map search → REST client: loads listings
frontend/src/pages/MapSearch.jsx - Property and map search → Search controls and pricing: uses search controls
frontend/src/pages/MapSearch.jsx - Students, tenants, owners, admins → Create listing: submit listing
README.md - Create listing → REST client: sends REST requests
README.md - Role dashboards → Owner workspace actions: routes to workspace
frontend/src/App.jsx - Owner workspace actions → REST client: requests portfolio data
frontend/src/pages/dashboards/ManagerDashboard.jsx - REST client → Property endpoints: calls REST API
README.md - Property endpoints → Listing and approval lifecycle: delegates listing actions
backend/src/main/java/com/wayhome/controller/PropertyController.java - Listing and approval lifecycle → Property listing: updates listing state
backend/src/main/java/com/wayhome/service/PropertyService.java - Listing and approval lifecycle → Persistence repositories: reads and writes listings
backend/src/main/java/com/wayhome/service/PropertyService.java - Students, tenants, owners, admins → Login and registration: register or sign in
README.md - Login and registration → REST client: uses REST API
README.md - Account and password auth → Email OTP verification: verifies registration OTP
backend/src/main/java/com/wayhome/service/AuthService.java - Account and password auth → JWT sessions: creates session token
backend/src/main/java/com/wayhome/service/AuthService.java - Account and password auth → Persistence repositories: loads and saves users
backend/src/main/java/com/wayhome/service/AuthService.java - Email OTP verification → Email delivery: sends verification email
- Students, tenants, owners, admins → Rental applications: apply for housing
README.md - Owner workspace actions → Rental applications: manages applications
frontend/src/pages/dashboards/ManagerDashboard.jsx - Rental applications → Domain services: handles application operations
backend/src/main/java/com/wayhome/controller/ApplicationController.java - Rental agreements → Domain services: handles agreement operations
backend/src/main/java/com/wayhome/controller/AgreementController.java - Students, tenants, owners, admins → Admin moderation: review submissions
README.md - Admin moderation → Property endpoints: moderates listings
README.md - Property endpoints → Domain services: uses domain services
README.md - Domain services → Persistence repositories: accesses persistence
README.md - Persistence repositories → MySQL: persists domain data
README.md