How ishakhamzaoui/socialhub-backend works
SocialHub is a social-networking API for accounts and profiles, social connections and safety, posts and comments, media, hashtags, and personalized feeds. The user-facing flow enters through API controllers and is handled by application features; the sampled feed handler confirms requester validation, suggested-user lookup, feed retrieval, and DTO assembly. The tree also shows authentication, scheduling, media processing, and persistence subsystems. The README is empty, and most source was not sampled, so links for those broader capabilities are omitted where caller relationships cannot be verified.
Main entry points: GetPersonalizedFeedQueryHandler.cs Feed queries · Controllers API controllers · Comments Comments · Follow Follow graph
Components 20
API boundary
- API controllers
src/SocialHub.API/Controllers
Social features
- Authentication
src/SocialHub.Application/Features/Authentication - Profiles
src/SocialHub.Application/Features/Users/Profile - Follow graph
src/SocialHub.Application/Features/Users/Follow - User safety
src/SocialHub.Application/Features/Users/Safety
Content features
- Posts
src/SocialHub.Application/Features/Posts - Feed queries
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Comments
src/SocialHub.Application/Features/Comments - Media
src/SocialHub.Application/Features/Media - Hashtags
src/SocialHub.Application/Features/Hashtags
Application platform
- Domain model
src/SocialHub.Domain - Result handling
src/SocialHub.Application/Common/Results/Result.cs - Query handlers
src/SocialHub.Application/Common/Messaging/IQueryHandler.cs - Identity services
src/SocialHub.Identity
Infrastructure
- Application database
src/SocialHub.Persistence/Context/ApplicationDbContext.cs - Repositories
src/SocialHub.Persistence/Repositories - File storage
src/SocialHub.Infrastructure/Storage/LocalFileStorageService.cs - Background jobs
src/SocialHub.Infrastructure/BackgroundJobs - Media processing
src/SocialHub.Infrastructure/Media
Other components
- User
Connections 15
- User → API controllers: sends requests
- API controllers → Profiles: dispatches profile actions
src/SocialHub.API/Controllers/UsersController.cs - API controllers → Follow graph: dispatches follow actions
src/SocialHub.API/Controllers/UsersController.cs - API controllers → Media: dispatches uploads
src/SocialHub.API/Controllers/UsersController.cs - Feed queries → Follow graph: gets suggestions
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Feed queries → Repositories: loads feed entries
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Feed queries → Result handling: returns result
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Feed queries → Query handlers: implements query handler
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Comments → Repositories: reads comments
src/SocialHub.Application/Features/Comments/GetCommentRepliesQueryHandler.cs - Comments → Result handling: returns result
src/SocialHub.Application/Features/Comments/GetCommentRepliesQueryHandler.cs - Comments → Query handlers: implements query handler
src/SocialHub.Application/Features/Comments/GetCommentRepliesQueryHandler.cs - Feed queries → Domain model: reads post entities
src/SocialHub.Application/Features/Feed/GetPersonalizedFeedQueryHandler.cs - Posts → Domain model: models post lifecycle
src/SocialHub.Domain/Posts/Post.cs - Follow graph → Domain model: models follow edges
src/SocialHub.Domain/Users/Follow.cs - File storage → Media: implements storage contract
src/SocialHub.Infrastructure/Storage/LocalFileStorageService.cs