How dad-groupe-6/breezy works
Breezy is a lightweight social network. Its principal user journey is browsing and creating posts, then interacting through likes, comments, follows, and recommendations; separate services handle identity, profiles, media, messaging, and notifications. The graph groups the web client and domain services, with one internal service/model layer shown where the supplied source supports it. Several service integrations and frontend-to-API links are not evidenced in the excerpts, so they are omitted rather than inferred.
Main entry points: auth.service.js Registration and login · post.service.js Posts and comments · conversation.service.js Conversation management · recommendation.service.js Post recommendations
Components 32
Web client
- Breezy web app
front/src/app/(app) - Post view
front/src/components/post/Post.jsx
Identity and access
- Authentication endpoints
Services/Auth/src/controllers/auth.controller.js - Registration and login
Services/Auth/src/services/auth.service.js - Role administration
Services/Auth/src/controllers/role.controller.js - Role and permissions
Services/Auth/src/services/role.service.js - Identity records
Services/Auth/src/models/index.js
Profiles and social graph
- User endpoints
Services/User/src/controllers/user.controller.js - Profile management
Services/User/src/services/user.service.js - User profiles
Services/User/src/models/user.model.js - Follow endpoints
Services/User/src/controllers/follow.controller.js - Follow relationships
Services/User/src/services/follow.service.js
Posts and media
- Post endpoints
Services/Post/src/controllers/post.controller.js - Posts and comments
Services/Post/src/services/post.service.js - Post records
Services/Post/src/models/post.model.js - Like records
Services/Post/src/models/like.model.js - Post view and paging
Services/Post/src/utils/postView.js - Recommendation endpoints
Services/Post/src/controllers/recommendation.controller.js - Post recommendations
Services/Post/src/services/recommendation.service.js - Media endpoints
Services/Media/src/controllers/media.controllers.js - Media streaming
Services/Media/src/services/media.service.js - GridFS storage adapter
Services/Media/src/storage/gridfs.storage.js
Messaging and notifications
- Conversation endpoints
Services/Message/src/controllers/conversation.controller.js - Conversation management
Services/Message/src/services/conversation.service.js - Message operations
Services/Message/src/services/message.service.js - Conversation records
Services/Message/src/models/conversation.model.js - Message records
Services/Message/src/models/message.model.js - Notification endpoints
Services/Notification/src/controllers/notification.controller.js - Notification service
Services/Notification/src/services/notification.service.js - Notification records
Services/Notification/src/models/notification.model.js - Event consumer
Services/Notification/src/messaging/consumer.js
Other components
- Social network user
Connections 29
- Social network user → Breezy web app: uses
- Breezy web app → Post view: renders
front/src/app/(app)/explorer/page.jsx - Authentication endpoints → Registration and login: delegates
Services/Auth/src/controllers/auth.controller.js - Registration and login → Identity records: reads/writes
Services/Auth/src/services/auth.service.js - Registration and login → Role and permissions: checks roles
Services/Auth/src/services/auth.service.js - Registration and login → User endpoints: calls profile API
Services/Auth/src/services/auth.service.js - Role administration → Role and permissions: delegates
Services/Auth/src/controllers/role.controller.js - Role and permissions → Identity records: reads/writes
Services/Auth/src/services/role.service.js - User endpoints → Profile management: delegates
Services/User/src/controllers/user.controller.js - Profile management → User profiles: reads/writes
Services/User/src/services/user.service.js - Follow endpoints → Follow relationships: delegates
Services/User/src/controllers/follow.controller.js - Follow relationships → User profiles: reads/writes
Services/User/src/services/follow.service.js - Post endpoints → Posts and comments: delegates
Services/Post/src/controllers/post.controller.js - Posts and comments → Post records: reads/writes
Services/Post/src/services/post.service.js - Posts and comments → Like records: reads/writes
Services/Post/src/services/post.service.js - Posts and comments → Post view and paging: formats and pages
Services/Post/src/services/post.service.js - Recommendation endpoints → Post recommendations: delegates
Services/Post/src/controllers/recommendation.controller.js - Post recommendations → Post records: queries
Services/Post/src/services/recommendation.service.js - Post recommendations → Post view and paging: formats and pages
Services/Post/src/services/recommendation.service.js - Media endpoints → Media streaming: delegates
Services/Media/src/controllers/media.controllers.js - GridFS storage adapter → Media streaming: streams files
Services/Media/src/storage/gridfs.storage.js - Conversation endpoints → Conversation management: delegates
Services/Message/src/controllers/conversation.controller.js - Conversation endpoints → Message operations: deletes messages
Services/Message/src/controllers/conversation.controller.js - Conversation management → Conversation records: reads/writes
Services/Message/src/services/conversation.service.js - Conversation management → Message records: counts unread
Services/Message/src/services/conversation.service.js - Message operations → Message records: reads/writes
Services/Message/src/services/message.service.js - Message operations → Conversation management: updates preview
Services/Message/src/services/message.service.js - Notification endpoints → Notification service: delegates
Services/Notification/src/controllers/notification.controller.js - Notification service → Notification records: reads/writes
Services/Notification/src/services/notification.service.js