The Anonymized Console Chat application is a lightweight chat platform that allows users to create custom chat groups and engage in real-time text conversations with others within the same group. With this application, users can define their own group names, making it easy to chat with friends, colleagues, or like-minded individuals, all within a simple and intuitive console interface.
-
Create Custom Groups: Users have the flexibility to create their own chat groups, defining group names that suit their specific interests or communities.
-
Real-Time Messaging: Enjoy real-time text messaging with other users who join the same group, making it ideal for instant communication and collaboration.
-
Cross-Platform Compatibility: This application can be run on various platforms, making it accessible to a wide range of users as it only requires java jdk to execute.
-
Open Source: The application is open source, enabling customization and integration into other projects.
-
Install java:
- For Ubuntu/Debian:
sudo apt update && sudo apt install openjdk-17-jdk
- For CentOS:
sudo yum update && sudo yum install java-11-openjdk
- For Ubuntu/Debian:
-
Clone the repository:
- Open your terminal or command prompt and navigate to the directory you want to store the chat application.
- Clone the repository using git.
git clone https://github.com/shah-codex/anonymized-console-chat.git
- Navigate inside the cloned repository.
cd anonymized-console-chat
-
Compile the sources:
- Using
javac
compiling the java files.javac client/*.java server/*.java
- Using
-
Starting up the server:
- Starting the server by executing the
server/Main.class
file.cd server && java Main
- Starting the server by executing the
-
Starting up the client:
- Connecting a client to the server by executing
client/Client.class
.cd client && java Client
- Connecting a client to the server by executing
-
Optional: Setting up the chat cleanup:
- Creating a cron job that executes every 15 minutes and cleans up the chat that were older than 15 minutes.
- Making cleanup files executable.
chmod +x server/*.sh
- Execute the following command to edit the cron file.
crontab -e
- Append following line to end of the file. This will execute the
cleanup.sh
file every 15 minutes.*/15 * * * * /<absolute-path-to>/anonymized-console-chat/server/cleanup.sh
Feel free to modify the current code to further customize the functionality and behavior of the simulation to suit your needs.
This project is licensed under the GNU General Public License, Version 2.0. You can find the full text of the license in the LICENSE file within this repository.