Skip to content

[Glense] Integrate services: gateway routing and inter-service communication#24

Merged
andjixi merged 6 commits intomainfrom
andjixi/integrate-services-gateway-routing
Mar 25, 2026
Merged

[Glense] Integrate services: gateway routing and inter-service communication#24
andjixi merged 6 commits intomainfrom
andjixi/integrate-services-gateway-routing

Conversation

@andjixi
Copy link
Copy Markdown
Collaborator

@andjixi andjixi commented Mar 25, 2026

Summary

Chat service stores usernames on messages
The Message model and DB schema now include a Username field (max 50 chars). When a message is created, the username is extracted from the JWT and stored directly, so there's no need to call the Account service per message.

Video Catalogue resolves uploader usernames
The Videos controller now calls the Account service to resolve usernames for all videos in a list response and for individual video fetches. If the Account service is unreachable, videos are still returned with uploaderUsername: null.

API Gateway proxies Video and Chat services
Two new proxy controllers (VideoProxyController, ChatProxyController) forward frontend requests to the downstream services.

Frontend routes all API calls through the gateway
videoApi.js and chatService.js now point to the gateway instead of directly to each service.

Channel page shows real profile data
ChannelCard and ChannelDetail replaced hardcoded demo content with real data fetched from the Account service.

Cleanup
Removed seed-test-users.sh (replaced by seed.sh), removed hardcoded demo data from constants.jsx, rewrote README.md and service READMEs in English with architecture diagrams and API tables.

@andjixi andjixi requested a review from Brankonymous March 25, 2026 16:07
@andjixi andjixi self-assigned this Mar 25, 2026
@andjixi andjixi changed the title Integrate services: gateway routing and inter-service communication [Glense] Integrate services: gateway routing and inter-service communication Mar 25, 2026
@andjixi andjixi added this to Glense Mar 25, 2026
@andjixi andjixi added this to the sprint-3 milestone Mar 25, 2026
@andjixi andjixi moved this to Code Review in Glense Mar 25, 2026
@andjixi andjixi merged commit 5d63181 into main Mar 25, 2026
2 checks passed
@github-project-automation github-project-automation bot moved this from Code Review to Done in Glense Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants