How mouez-jedidi/love_allert works
Love Alert is a location-based matching and chat app with an Expo mobile client and Express/MongoDB backend. Users onboard, authenticate and complete a profile; the client can submit GPS location and request nearby matches. The backend proposes and records matches, users can accept, then chat; messaging and trust progress reveal profile details. The README also documents real-time updates, push and email notifications. Routes, controller/model references and several client-service calls are supported by the source index or excerpts; other feature links are limited to documented capabilities where implementation was not sampled.
Main entry points: api.js REST client · App.js App navigation · routes API routes · matchController.js Nearby matching
Components 30
Mobile experience
- App navigation
mobile/App.js - Onboarding and auth
mobile/screens/AuthScreen.js - Profile experience
mobile/screens/ProfileScreen.js - Discovery home
mobile/screens/HomeScreen.js - Match flow
mobile/screens/MatchScreen.js - Chat experience
mobile/screens/ChatScreen.js - Photo gallery
mobile/screens/GalleryScreen.js
API and domain
- Express server
backend/server.js - API routes
backend/routes - Authentication
backend/controllers/authController.js - User profiles
backend/controllers/userController.js - Nearby matching
backend/controllers/matchController.js - Messaging
backend/controllers/messageController.js
Realtime and notifications
- Socket events
backend/config/socket.js - Push notifications
backend/services/notificationService.js - Email delivery
backend/config/email.js - Phone verification
backend/config/twilio.js
Persistence and integrations
- User records
backend/models/User.js - Match records
backend/models/Match.js - Message records
backend/models/Message.js
Client services
- REST client
mobile/services/api.js - GPS updates
mobile/services/gps.js - Socket client
mobile/services/socket.js - Photo uploads
mobile/services/upload.js
Other components
- App user
- MongoDB
- Push provider
- Email provider
- SMS provider
- Device location
Connections 44
- App user → App navigation: uses
README.md - App navigation → Onboarding and auth: routes to
mobile/App.js - App navigation → Profile experience: routes to
mobile/App.js - App navigation → Discovery home: routes to
mobile/App.js - App navigation → Match flow: routes to
mobile/App.js - App navigation → Chat experience: routes to
mobile/App.js - Onboarding and auth → REST client: calls
mobile/screens/AuthScreen.js - Profile experience → REST client: calls
mobile/screens/ProfileScreen.js - Profile experience → Photo uploads: uses
mobile/screens/ProfileScreen.js - Photo gallery → REST client: calls
mobile/screens/GalleryScreen.js - Photo gallery → Photo uploads: uses
mobile/screens/GalleryScreen.js - Discovery home → GPS updates: uses
mobile/screens/HomeScreen.js - Discovery home → Socket client: uses
mobile/screens/HomeScreen.js - Discovery home → REST client: requests matches
mobile/screens/HomeScreen.js - Match flow → REST client: calls
- Chat experience → REST client: calls
mobile/screens/ChatScreen.js - Chat experience → Socket client: uses
mobile/screens/ChatScreen.js - GPS updates → Device location: reads location
- REST client → Express server: sends REST requests
- Express server → API routes: mounts
backend/server.js - Express server → Socket events: initializes
backend/server.js - Express server → MongoDB: connects
backend/server.js - API routes → Authentication: routes auth
backend/routes/auth.js - API routes → User profiles: routes users
backend/routes/users.js - API routes → Nearby matching: routes matches
backend/routes/matches.js - API routes → Messaging: routes messages
backend/routes/messages.js - Authentication → User records: reads and writes
backend/controllers/authController.js - Authentication → Email delivery: sends verification
backend/controllers/authController.js - Authentication → Phone verification: verifies phone
backend/controllers/authController.js - User profiles → User records: reads and writes
backend/controllers/userController.js - Nearby matching → User records: queries users
backend/controllers/matchController.js - Nearby matching → Match records: creates matches
backend/controllers/matchController.js - Nearby matching → Push notifications: sends alerts
backend/controllers/matchController.js - Nearby matching → Socket events: emits match events
backend/controllers/matchController.js - Messaging → Message records: reads and writes
backend/controllers/messageController.js - Messaging → Match records: updates match
backend/controllers/messageController.js - Messaging → User records: loads participants
backend/controllers/messageController.js - Messaging → Push notifications: notifies recipient
backend/controllers/messageController.js - Push notifications → Push provider: sends push
backend/services/notificationService.js - Email delivery → Email provider: delivers email
- Phone verification → SMS provider: sends OTP
- User records → MongoDB: persists
- Match records → MongoDB: persists
- Message records → MongoDB: persists