Building a Real-time Live Polling System with Remix Frontend and Rails API Backend

Table of Contents Introduction Setting Up the Project Designing the Data Model (Rails) Building the API Endpoints (Rails) Setting Up WebSockets (Rails) Remix.js Frontend Setup (Remix.js) Implementing API Integration in Remix Real-time Updates with WebSockets in Remix Conclusion: Reflecting on Our Live Polling System 1. Introduction WebSockets: The Real MVP of Real-Time Web Apps Today, we’re exploring the world of WebSockets. If you’ve ever wondered how modern web apps achieve that smooth, real-time feel, you’re in for a treat....

August 1, 2024 · 28 min · 5953 words · Fernando Mendez

WebSockets with React, Redux, and Ruby on Rails

Note: all the code for this post can be found here(frontend) and here (backend/rails) Let’s explore how to integrate Rails ActionCable functionality (WebSockets) with a basic chat application using React and Redux (via Redux Toolkit). I’m only including the most relevant snippets of code, please refer to the code in the repo for the entire context. Backend Since I’m using rails as an API endpoint, I’ll create the app using the --api flag....

January 8, 2022 · 7 min · 1431 words · Fernando Mendez