MENU

Fun & Interesting

Spring boot & WebSockets: Build a Real-Time Chat App From Scratch

Bouali Ali 168,707 2 years ago
Video Not Working? Fix It Now

Buy me a coffee: https://ko-fi.com/boualiali 🔥 Secure your spot now and embark on your journey to becoming a Spring Boot master!🔥 https://aliboucoding.com/p/spring-boot-in-depth?coupon_code=EARLY_BIRD_30&product_id=4985811 🎁 🚀 COUPON Code: EARLY_BIRD_30 #websockets #springboot3 #Java #Tutorial #WebDevelopment Unlock the power of real-time communication in web development with our comprehensive and interactive tutorial on WebSockets! In this step-by-step guide, you'll learn to build a fully functional chat application from scratch, perfect for beginners and intermediate learners alike. 🎁 Spring Data JPA course: https://aliboucoding.com/p/the-full-guide-to-master-spring-boot-data-jpa 🎁 🚀 COUPON Code: EARLYBIRD20 🔗 Source code: https://github.com/ali-bouali/spring-boot-websocket-chat-app 🎟 Join this channel to get access to perks: https://youtube.com/@Boualiali Recommended Courses: 🎬 Spring Boot security & JWT token: https://www.youtube.com/watch?v=BVdQ3iuovg0 🎬 Spring security - Roles and permissions: https://www.youtube.com/watch?v=mq5oUXcAXL4 🎬 Spring Boot - Microservices architecture: https://www.youtube.com/watch?v=KJ0cSvYj41c 🎬 DevOps - Github Actions CI/CD: https://www.youtube.com/watch?v=a5qkPEod9ng 🎬 Spring Security - KeyCloak integration: https://www.youtube.com/watch?v=vmEWywGzWbA 🎬 DevOps - Docker for Beginners: https://www.youtube.com/watch?v=LNL0h66FXu0 🎬 DevOps - AWS EC2 deployment: https://www.youtube.com/watch?v=ua0cb2LjCW4 🎬 Angular - Full course from scratch: https://www.youtube.com/watch?v=VTEDh2pNSBQ 🎬 Websocket - Chat application one to one: https://www.youtube.com/watch?v=7T-HnTE6v64 🎬 Spring Security - Two Factors Authentication 2FA (TFA): https://www.youtube.com/watch?v=NzuC52eLGKo 🎬 Spring Boot - Swagger UI & OpenApi Decomentation :https://www.youtube.com/watch?v=2o_3hjUPAfQ 🎬 Spring Boot - Reactive programming & WebFlux:https://www.youtube.com/watch?v=EnUsNVHveyU 🎬 Spring Data JPA & Hibernate: https://www.youtube.com/watch?v=eY9riN5Y2mQ&list=PL41m5U3u3wwkS8BU0fIeRQwY3hK4VlFlX&pp=gAQBiAQB 🎬 Apache Kafka: https://www.youtube.com/watch?v=KQDTtvZMS9c CONNECT WITH ME: 👨‍💻. Website: https://aliboucoding.com 👨‍🏫 Facebook: https://www.facebook.com/groups/589612651142975 📸 Instagram: https://www.instagram.com/alibou_coding 🎮 GitHub: https://github.com/ali-bouali 🏘️ Discord: https://discord.gg/Ded93eKfAB This tutorial is designed to simplify complex concepts and guide you through the entire process of creating a real-time, two-way communication system. We start from the basics of WebSocket technology, how it enables seamless data flow between clients and servers, then quickly delve into the hands-on coding part. Here's what you'll gain from this video: 1️⃣ Clear understanding of WebSockets and their role in real-time web applications. 2️⃣ Practical knowledge of how to set up WebSocket connections. 3️⃣ Implement a chat application, learning to send and receive messages in real-time. 4️⃣ Deal with real-world challenges like connection errors and system failovers. 5️⃣ Best practices for security and scalability when using WebSockets. By the end of the tutorial, you will not only know the theory but also have a fully functional chat app that you have built yourself! Our unique, student-friendly approach makes this the perfect video for those new to WebSockets or those looking to solidify their understanding. It's a must-watch for aspiring web developers, full-stack engineers, and computer science students. If you've been searching for a comprehensive, easy-to-follow guide on WebSockets and real-time application development, your search ends here! Don't forget to subscribe for more such insightful tutorials and hit the bell icon for updates on future videos. Be sure to like, share, and comment if you found this tutorial helpful. Your feedback drives our content. Happy coding! Table of Content: 00:00 Introduction 01:44 What is Websocket 06:34 HTTP VS Websocket 09:12 Websocket Hanshake 11:43 Future application 12:24 Create a new Spring boot project 13:41 Add Websocket broker config 17:44 Add disconnect event listener 20:02 Implement the char controller 27:09 Finish the disconnect event listener 30:36 Add the HTML page 36:56 Implement the Javascript 55:30 Test the chat application 58:20 Outro

Comment