A terminal-based chatroom application built in Java using DiceDB and the DiceDB-Java SDK. Each instance of the application connects to a shared DiceDB backend and communicates in real-time through a simple terminal interface.
- Java 21
- Maven (use included
mvnwwrapper) - DiceDB running locally on port
7379
Make sure DiceDB is up and running before you start the application.
Refer to DiceDB README for setup instructions.
To build and run the JAR:
# Step 1: Build the jar
./mvnw clean install
# Step 2: Run the jar with a username
java -jar target/chatroom.jar <username1>
java -jar target/chatroom.jar <username2>Just run the `main` method in the `Main` class with your desired username passed as an argument.
1. A popup terminal window will appear.
2. Type your message in the input box.
3. Use the Left Arrow Key to shift focus to the Send button.
4. Press Enter to send the message.
5. Write 'exit' to leave the chatroom.
If you have suggestions or improvements, feel free to open an issue or submit a pull request. Your feedback is always welcome!
