This project is a real-time chat application built using Java, Spring Boot, and WebSocket technology. It enables instant messaging between users, efficient user management, and persistent storage of chat history.
- Real-time messaging using WebSocket
- Persistent storage of user profiles, chat rooms, and message history
-
Ensure you have Java 17 and Maven installed on your system.
-
Clone the repository:
git clone https://github.com/yourusername/websocket-chat-application.git -
Navigate to the project directory:
cd websocket-chat-application -
Set up MongoDB:
- You can use the provided
docker-compose.yamlfile to run MongoDB in a Docker container:docker-compose up -d - Alternatively, install and run MongoDB locally.
- You can use the provided
-
Configure the application:
- Open
src/main/resources/application.yml - Update the MongoDB connection details if necessary
- Open
-
Build the project:
mvn clean install -
Run the application:
java -jar target/websocket-0.0.1-SNAPSHOT.jar -
Access the application at
http://localhost:8088in your web browser.