This repository contains an online chat application developed using Spring Boot. Follow the steps below to set up and run the application.
- Java Development Kit (JDK)
- Maven
- A text editor or an IDE (such as IntelliJ IDEA or Eclipse)
-
Visit Spring Initializr
- Go to Spring Initializr.
- Select the following options:
- Project: Maven
- Language: Java
- Spring Boot Version: Choose the desired stable version
- Packaging: Jar
- Java Version: Select the version you have installed
- Dependencies: Add "WebSocket"
-
Generate the Project
- Click on "Generate" to download the project as a ZIP file.
- Extract the ZIP file to your desired location.
- Set the Port
- Change to your desired port in the
application.propertiesfile located in thesrc/main/resourcesfolder.server.port=8080
- Change to your desired port in the
-
MessageController
- Created in the
javafolder to handle message mapping and sending messages to all connected clients.
- Created in the
-
Messages
- Created in the same way to specify the name and content, along with their getter and setter methods.
-
Configuration
- Added configuration file to use STOMP and message broker properties.
- In the
staticfolder, added a simple frontend with HTML, CSS, and JavaScript. - Feel free to modify the frontend as per your needs.
This project was created by ACEGX25 along with ashutoshh-17.
For a detailed explanation, watch this video: Watch Here
Feel free to fork this repository and contribute to the project.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding!



