Build a Full-Stack Online Chat App in Java (Swing, Springboot Websocket)

Опубликовано: 15 Сентябрь 2024
на канале: TapTap
7,492
432

Learn how to build an Online Chat Application all in Java!

In this tutorial, we dive into Spring Boot's WebSocket library to handle real-time messaging on the backend, and then use Swing to create the GUI for the app. Towards the end, I’ll walk you through hosting your WebSocket server online using Render, so you can test and interact with it from anywhere.

🔗 Links:
1. Maven Download: https://maven.apache.org/download.cgi
2. Spring Initializr: https://start.spring.io/
3. Render: https://render.com/
4. Github: https://github.com/
5. Docker Explanation:    • Hosting Springboot App on render.com  

------------------------------SOCIAL------------------------------
📹 Checkout my Game Development Channel:    / @taptapstudyi.  .
🐱‍🚀 Github: https://github.com/curadProgrammer
🅿 Patreon:   / taptap196  

See more of my content below:
🩳 Shorts Playlist:    • Shorts  
☕ Java Playlist:    • Java Swing Series  
🍵 JavaFX Playlist:    • JavaFX Series  

⏱ Timestamp:
00:00 - 00:45 : Intro
00:46 - 03:28: Maven Installation
03:29 - 06:47: Springboot Project Setup
06:48 - 08:33: Springboot Overview
08:34 - 11:58: Websocket Config
11:59 - 16:48: Websocket Controller (Send Message)
16:49 - 27:39: Websocket Client (Send Message)
27:40 - 32:22: Websocket Controller (Send Active Users List)
32:23 - 36:28: Websocket Client (Connect User)
36:29 - 39:57: ClientGUI Window
39:58 - 44:39: ClientGUI Exit Popup
44:40 - 53:24: ClientGUI Connected Users Components
53:25 - 1:10:16: ClientGUI Chat Display
1:10:17 - 1:18:45: ClientGUI Websocket Connection
1:18:46 - 1:40:42: ClientGUI Message listener
1:40:43 - 1:45:50: ClientGUI Username Input
1:45:51 - 2:03:15: ClientGUI Bettering UX/UI Experience
2:03:16 - 2:14:28: Hosting Websocket on Render using Docker
2:14:29 - 2:15:02: Outro + Patreon Announcement

✅ Answers to the Video Quiz Questions:
1. The default port is 8080
2. STOMP stands for Simple (or Streaming) Text Oriented Message Protocol
3. POJO stands for Plain Old Java Object
4. The URL of our websocket it http://localhost:8080/ws
5. /app/connect
6. HIDE_ON_CLOSE
7. BorderLayout
8. EmptyBorder
9. revalidate() and repaint()
10. JScrollPane


Смотрите видео Build a Full-Stack Online Chat App in Java (Swing, Springboot Websocket) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TapTap 15 Сентябрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,492 раз и оно понравилось 432 людям.