This project implements a simple Java chat application consisting of a server and a client. Users can connect to the server to participate in a real-time chat.
Java Development Kit (JDK) 8 or later IntelliJ IDEA (or any other Java IDE)
Clone the repository:
git clone https://github.com/GianbaBotassi/JavaChatApp.gitOpen the project in IntelliJ IDEA:
Run the ChatServer class. The server will start on port 5000.
-
Navigate to "Edit Configurations" by clicking on the dropdown in the toolbar.
-
Click on the "+" symbol to add a new configuration.
-
Choose a name for the configuration and select the main
ChatClientGUIclass. -
Click "Apply."
-
Run each configuration individually.
-
Enter your name in the initial dialog window for each instance.
-
Press "Enter" to send a message.
To exit the chat, click the "Exit" button.