Super simple application leveraging socket.io
and express
that allows users to POST to an API and all browsers with the page open will have the text spoken out loud. Built to enable ChatOps.
git clone https://github.com/udryan10/water-cooler.git && npm install
sudo node server.js
./deploy.sh
docker run -d --name "water-cooler" -p 80:80 udryan10/water-cooler
curl -XPOST -H 'Content-Type: text/plain' -H 'X-Voice: Junior' http://localhost:8000/ -d 'this is my message'