Fully working real-time chat application to practice spring WebSocket and STOMP as a simple text-based messaging protocol to establish a persistent connection between a client and server to deliver and receive chat messages instantly without the use of long-polling.
-
- A stable version of node installed on your machine
- Npm
npm install npm@latest -g
- Angular CLI
npm install -g @angular/[email protected]
-
- Java SDK v1.8 or higher
- Apache Maven 3.3 or above
Clone the repo 😊
git clone https://github.com/Houssem-Selmi/websocket-project.git
-
Open the folder 'websocket-project-backend' with your favorite Java IDE
-
Run the Spring Boot Java project
Access the Front-End folder
cd websocket-project-frontend
Install the dependencies
npm install
Start the angular project
ng serve
Now you should see the application running in your browser, type a username and start the chat.
Now everything is set up correctly and you can start exploring the real-time chat application 💬
Houssem Selmi ✏️
Code released under the MIT License.