How muhammad-abdullha/brand-promotion works
Brand Promotion Platform is a multi-role marketing product for brand admins, influencers, and end users. Users enter through role-specific dashboards to manage campaigns and ads, collaborate with partners, publish and engage with social content, and review analytics; billing and support round out the workflow. The graph retains the README’s major capability areas, using sampled frontend dispatches and backend route/controller evidence where available. Some subsystems are represented by exact source directories because their implementation files were not sampled; their internal links are therefore omitted when unverified.
Main entry points: App.jsx Role dashboards · config.go PostgreSQL data · combineCampaign Combined campaigns · adController.go Ad management
Components 25
User experience
- Role dashboards
src/App.jsx
Campaign marketing
- Campaign lifecycle
backend/controllers/campaignController.go - Combined campaigns
src/components/combineCampaign - Partner discovery
backend/controllers/recommendationController.go - Ad management
backend/controllers/adController.go - Ad delivery
src/components/publishads/DisplayAds.jsx - Rewards and leaderboard
backend/models/gamification.go
Social engagement
- Social feed and stories
backend/controllers/postController.go - User search and follows
src/components/social/Search.jsx - Direct and group chat
backend/controllers/chatController.go
Insights and engagement
- Campaign and ad analytics
backend/controllers/analyticsController.go - Post performance
backend/controllers/postAnalyticsController.go
Platform services
- Identity and access
backend/controllers/authController.go - Media assets
backend/cloudinary - WebSocket hub
backend/ws/chat_hub.go - Subscriptions and payments
backend/controllers/stripeController.go - Coupons
backend/controllers/coupons.go - Notifications
backend/controllers/notification.go - Customer support
backend/controllers/supportController.go - Search API
backend/controllers/searchController.go - PostgreSQL data
backend/config/config.go
Other components
- Platform users
- Cloudinary
- Stripe
- Mistral AI
Connections 32
- Platform users → Role dashboards: opens
src/App.jsx - Role dashboards → Identity and access: authenticates
README.md - Role dashboards → Campaign lifecycle: manages campaigns
README.md - Role dashboards → Ad management: manages ads
README.md - Role dashboards → Combined campaigns: starts collaboration
README.md - Role dashboards → Social feed and stories: uses social layer
README.md - Role dashboards → Campaign and ad analytics: views insights
README.md - Role dashboards → Subscriptions and payments: manages subscription
README.md - Role dashboards → Rewards and leaderboard: uses rewards
README.md - Role dashboards → Notifications: views updates
README.md - Role dashboards → Customer support: requests support
README.md - Combined campaigns → Partner discovery: requests rankings
README.md - Combined campaigns → Direct and group chat: initializes group chat
README.md - Combined campaigns → Campaign and ad analytics: logs events
README.md - Ad management → Mistral AI: generates suggestions
README.md - Partner discovery → Mistral AI: ranks partners
README.md - Ad management → Media assets: stores media
README.md - Media assets → Cloudinary: uploads assets
README.md - Ad delivery → PostgreSQL data: fetches published ads
README.md - Role dashboards → Ad delivery: serves ads
README.md - Social feed and stories → User search and follows: searches people
README.md - User search and follows → Search API: queries users
- Role dashboards → Direct and group chat: opens conversations
README.md - Direct and group chat → WebSocket hub: serves WebSocket
README.md - Role dashboards → Post performance: reviews post metrics
README.md - Subscriptions and payments → Stripe: processes payments
README.md - Campaign lifecycle → PostgreSQL data: persists campaigns
README.md - Ad management → PostgreSQL data: persists ads
README.md - Social feed and stories → PostgreSQL data: persists content
README.md - Campaign and ad analytics → PostgreSQL data: stores event logs
README.md - Rewards and leaderboard → PostgreSQL data: stores rewards
README.md - Subscriptions and payments → PostgreSQL data: records transactions
README.md