How achour2003/weunity works
This repository implements a social network: users register and authenticate, complete profiles, discover friends, publish posts, and interact through feeds, comments, likes, chat, and notifications. The React client routes users into these experiences; Java microservices own the domain operations and persistence, with service-to-service HTTP, gRPC, WebSocket, and event integrations. The README is a generic GitLab template and documents no product capabilities. Relationships below are limited to those visible in excerpts or SOURCE INDEX references; unsampled integrations are omitted or marked unverified.
Main entry points: App.js Route and session UI · FeedService.java Feed assembly · UserProfileService.java Profile and friendships · Profile.jsx Profile view
Components 20
Web client
- Route and session UI
FullStackSocialMedia-main/src/App.js - Home feed
FullStackSocialMedia-main/src/pages/Home.jsx - Profile view
FullStackSocialMedia-main/src/pages/Profile.jsx - Friends view
FullStackSocialMedia-main/src/pages/FriendsPage.jsx - Chat view
FullStackSocialMedia-main/src/pages/Chat.jsx - Message WebSocket client
FullStackSocialMedia-main/src/components/webSocketManager.jsx
Identity and profiles
- Authentication
auth-service/src/main/java/com/app/authservice/service/AuthService.java - Account records
auth-service/src/main/java/com/app/authservice/model/User.java - Profile and friendships
user-service/src/main/java/com/app/userservice/service/UserProfileService.java - Friendship operations
user-service/src/main/java/com/app/userservice/service/FriendshipService.java
Social content
- Post management
post-service/src/main/java/com/app/postservice/service/PostService.java - Feed assembly
feed-service/src/main/java/com/app/feedservice/service/FeedService.java - Comment operations
comment-service/src/main/java/com/app/commentservice/service/CommentService.java - Like operations
like-service/src/main/java/com/app/likeservice/service/LikeService.java
Communication
- Message operations
message-service/src/main/java/com/app/messageservice/service/MessageService.java - Notification consumer
notification-servie/src/main/java/com/app/notificationservie/service/NotificationConsumer.java
Service platform
- API gateway
gateway-service/src/main/java/com/app/gatewayservice/filter/JwtAuthenticationFilter.java - Service discovery
discovery-service/src/main/java/com/app/discoveryservice/DiscoveryServiceApplication.java - Central configuration
config-service/src/main/java/com/app/configservice/ConfigServiceApplication.java
Other components
- Social network user
Connections 24
- Social network user → Route and session UI: uses
- Route and session UI → Home feed: routes to
FullStackSocialMedia-main/src/App.js - Route and session UI → Profile view: routes to
FullStackSocialMedia-main/src/App.js - Route and session UI → Friends view: routes to
FullStackSocialMedia-main/src/App.js - Route and session UI → Chat view: routes to
FullStackSocialMedia-main/src/App.js - Route and session UI → Message WebSocket client: mounts
FullStackSocialMedia-main/src/App.js - Message WebSocket client → Message operations: subscribes via WebSocket
- Route and session UI → Authentication: requests authentication
- Authentication → Account records: reads and writes
auth-service/src/main/java/com/app/authservice/service/AuthService.java - Authentication → Profile and friendships: requests profile creation
auth-service/src/main/java/com/app/authservice/service/AuthService.java - Profile view → Profile and friendships: loads profile
- Friends view → Friendship operations: manages friends
- Friendship operations → Notification consumer: publishes notification
user-service/src/main/java/com/app/userservice/service/FriendshipService.java - Home feed → Feed assembly: loads feed
- Feed assembly → Friendship operations: fetches friend IDs
feed-service/src/main/java/com/app/feedservice/service/FeedService.java - Feed assembly → Profile and friendships: fetches profiles
feed-service/src/main/java/com/app/feedservice/service/FeedService.java - Feed assembly → Like operations: fetches like data
feed-service/src/main/java/com/app/feedservice/service/FeedService.java - Profile view → Post management: manages posts
- Post management → Comment operations: requests comment counts
post-service/src/main/java/com/app/postservice/service/PostService.java - Feed assembly → Post management: collects post data
- Chat view → Message operations: sends and reads
- Message operations → Profile and friendships: looks up user profiles
message-service/src/main/java/com/app/messageservice/service/MessageService.java - API gateway → Service discovery: resolves services
- API gateway → Central configuration: loads configuration