basic node websocket chat interface with express & sockets.io.
this is based a number of online tutorials, see References
section.
- (todo) refactor the user leaving and adding code, don't like the list approach
- (todo) fix the craptastic layout
- (todo) dockerize
npm
andnode
# install necessary packages
npm install
# run with nodemon
npm start
by default, it runs on port 5000. navigate to http://localhost:5000
(or server addr if running remotely)
based primarily on the tutorial below, except i roll my own, arguably way more "awesome", frontend:
Realtime Chat With Users & Rooms - Socket.io, Node & Express