This is a very straight forward chat server (no persistence) that is meant to be used with the companion project typeScriptChatClient.
- Clone the repository.
- Run
npm install
then runnpm run build
. - Run
npm start
That's it! You should have a server listening on port 3000. See the typeScriptChatClient project for instructions on how to connect to the server and start chatting.
The docker compose file in this project can be used to start a full chat application including the chat server, the chat client, a prometheus and grafana instance for application monitoring, and a "chaos" application to send some garbage data to the server. To start the full application, follow these steps:
- Build a docker image for the typeScriptChatClient application by
running
docker build . -t chat_client:v1.0.0
in the root directory of the repo. - Build a docker image for this project by running
docker build . -t chat_server:v1.0.0
in the root directory of this repo. - Run
docker-compose up
to start the application. - The chat client can be accessed by visiting
http://localhost:8080
, the Prometheus service can be accessed by visitinghttp://localhost:9090
, and the Grafana service can be accessed by visitinghttp://localhost:3001
.