a chat room app
A user can create a instance or join one by typing in the id.
- clone the repo
- install go if you dont have it installed
- navigate to
chat/server - make sure all the dependencies are there with
go mod tidy - start the server with
go run . - open
client/index.htmlin your browser (clientId = 0) - open a second tab with
client/index.html(clientId = 1) - open the terminal in booth tabs
- sent messages by writing in the text box using the format
clientId; messageand then click send. For example "0;Welcome to the chat!" - you can now see the message in the other terminal