chatroom
is a multi-threaded chatroom written in Java and uses the client-server model. chatroom
provides a command-line interface to communicate with clients and obtain information about them.
whoelse
: see who else is currently in the chatroombroadcast
: sends messages to all online clientsmessage
: sends private message to clienthelp
: gives an overview of commands available
- maven - dependency management
to build the chatroom
server image:
docker build -t chatroom-server . -f server.Dockerfile
and to run the container (also named chatroom-server
):
docker run -p 4000:4000 --name=chatroom-server chatroom-server
to build the chatroom
client image:
docker build -t chatroom-client . -f client.Dockerfile
and to run the container (also named chatroom-client
):
docker run -it --name=chatroom-client --network=host chatroom-client
this project is licensed under the MIT License - see LICENSE for details