Sen descrición

Thomas Flucke d30e8f010c Filed README.md to display line breaks in github %!s(int64=10) %!d(string=hai) anos
README.md d30e8f010c Filed README.md to display line breaks in github %!s(int64=10) %!d(string=hai) anos
chatRoom.service a15aad28d9 Added config file for Systemd and added setup instructions to README.md %!s(int64=10) %!d(string=hai) anos
index.html 95927307d5 Inital commit %!s(int64=10) %!d(string=hai) anos
main.js 95927307d5 Inital commit %!s(int64=10) %!d(string=hai) anos

README.md

Using Systemd

Setup:

npm install socket.io

mkdir -vp ~/.config/systemd/user

cp -v chatRoom.service ~/.config/systemd/user

systemctl --user daemon-reload

Run:

systemctl --user start chatRoom

Stop:

systemctl --user stop chatRoom

Manual

Setup:

npm install socket.io

Run:

node main.js &

Stop:

kill [pid]