Improving Twitch Integration for Glowing-Telegram: Backend and Frontend Updates - Episode 176
In this video, I share my progress and plans as I continue building Glowing-Telegram, a project that integrates Rust APIs and React-Admin while leveraging AWS services. This session focuses on improving the integration with Twitch, enhancing both backend and frontend functionality. Here's what we cover in detail:
**AWS CDK Updates**: After facing CORS issues in the last stream, I transitioned from Pulumi to AWS CDK, creating two stacks—a streamlined AppStack for core application infrastructure and a RepoStack for managing Elastic Container Registry (ECR) repositories. This setup enables easier deployment and updates for Docker-based Lambda functions.
**Using AWS Services**: I explore features like ECR's pull-through cache, and discuss ideas for automating Docker image builds with GitHub Actions, aiming to push images directly to GitHub’s container registry and cache them in ECR.
**Twitch OAuth Flow Refinements**: I dive deep into improving the Twitch OAuth flow by shifting token storage and processing responsibilities to the backend. This change uses AWS Secrets Manager for secure token handling, making the system scalable and ready for multi-user scenarios.
**Frontend Adjustments**: We’ll modify the front-end React components to interact with the redesigned backend flows. This includes updates to the Twitch-related features like stream management tools and the OAuth authorization process.
**Code Refactor and Future Plans**: I reflect on writing flexible, maintainable code for future use, addressing potential pitfalls of over-engineering while ensuring solutions are future-proof. Additionally, I share insights into managing access tokens, improving access control, and other considerations for evolving this into a multi-user application.
This coding session also highlights the practical challenges of designing software that's secure, user-friendly, and easy to maintain. It's a fun, laid-back stream where I embrace the challenges and joys of iterative development.
🔗 Check out my Twitch channel for more streams: https://www.twitch.tv/saebyn
GitHub: https://github.com/saebyn
Discord: https://discord.gg/N7xfy7PyHs