How srinadh0219/chatmeet-social-medial-platform works
This is a full-stack social platform. Users register and verify accounts, then access profiles, a follow-based post feed, communities, and private or group messaging; feedback is another user-facing capability. The frontend routes these experiences and makes API calls, while the Express server mounts domain routes and also handles Socket.io events. Sampled code confirms OTP persistence and message retrieval through the database. Several feature implementations and route-to-controller bindings are unsampled, so those links are omitted rather than inferred.
Main entry points: server.ts HTTP and sockets · App.tsx App routing · db.ts PostgreSQL access · Join.tsx Chat experience
Components 26
Frontend experiences
- App routing
FrontEnd/src/App.tsx - Authentication UI
FrontEnd/src/component/Register.tsx - OTP verification
FrontEnd/src/pages/OTPVerification.tsx - Auth API client
FrontEnd/src/api/api-auth.ts - Feed and profiles
FrontEnd/src/component/HomePage.tsx - Profile editing
FrontEnd/src/component/EditProfile.tsx - Community browsing
FrontEnd/src/api/api-community.ts - Chat experience
FrontEnd/src/component/Join.tsx - Chat helpers
FrontEnd/src/config/chatLogic.ts - Posts API client
FrontEnd/src/api/api-post.ts
Backend services
- HTTP and sockets
backend/src/server.ts - Auth routes
backend/src/Routes/api/auth.ts - Post routes
backend/src/Routes/api/posts.ts - Chat routes
backend/src/Routes/api/chat.ts - Community routes
backend/src/Routes/api/community.ts - User routes
backend/src/Routes/api/users.ts - Message retrieval
backend/src/Controllers/chat/allMessage.ts - Registration
backend/src/Controllers/auth/RegisterControllers.ts - OTP and recovery
backend/src/Controllers/auth/AuthOtpController.ts - OTP and email helper
backend/src/utils/otpHelper.ts
Data and persistence
- PostgreSQL access
backend/src/config/db.ts - Domain schemas
backend/src/Schema
External services
- Email service
- Cloudinary media
Other components
- User
- Connected chat users
Connections 24
- User → App routing: uses
FrontEnd/src/App.tsx - App routing → Authentication UI: routes to
FrontEnd/src/App.tsx - App routing → OTP verification: routes to
FrontEnd/src/App.tsx - App routing → Feed and profiles: routes to
FrontEnd/src/App.tsx - App routing → Profile editing: routes to
FrontEnd/src/App.tsx - App routing → Chat experience: routes to
FrontEnd/src/App.tsx - OTP verification → Auth API client: calls
FrontEnd/src/pages/OTPVerification.tsx - Chat experience → Posts API client: calls
FrontEnd/src/component/Join.tsx - Chat experience → Chat helpers: uses
FrontEnd/src/component/Join.tsx - HTTP and sockets → Auth routes: mounts
backend/src/server.ts - HTTP and sockets → Post routes: mounts
backend/src/server.ts - HTTP and sockets → Chat routes: mounts
backend/src/server.ts - HTTP and sockets → Community routes: mounts
backend/src/server.ts - HTTP and sockets → User routes: mounts
backend/src/server.ts - HTTP and sockets → Connected chat users: dispatches events
backend/src/server.ts - Registration → PostgreSQL access: queries
backend/src/Controllers/auth/RegisterControllers.ts - Registration → OTP and email helper: generates and emails
backend/src/Controllers/auth/RegisterControllers.ts - OTP and recovery → PostgreSQL access: queries
backend/src/Controllers/auth/AuthOtpController.ts - OTP and recovery → OTP and email helper: generates and emails
backend/src/Controllers/auth/AuthOtpController.ts - OTP and email helper → Email service: sends OTP
- Message retrieval → PostgreSQL access: queries
backend/src/Controllers/chat/allMessage.ts - PostgreSQL access → Domain schemas: persists domain data
- User → Cloudinary media: uploads post media
README.md - User → Community browsing: browses communities
README.md