A basic Node chatroom application that uses sockets.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Trevor Richards bd3c393576 updated readme 3 years ago
static load recent messages, mark color sender messages 3 years ago
views improve layout styles 3 years ago
.gitignore initial commit 3 years ago
package-lock.json initial commit 3 years ago
package.json package.json name 3 years ago
readme.md updated readme 3 years ago
recent.js load recent messages, mark color sender messages 3 years ago
routes.js load recent messages, mark color sender messages 3 years ago
server.js load recent messages, mark color sender messages 3 years ago

readme.md

Basic Socket.io Chat Program

I got to learn the basics of how to do this thanks to Lighthouse Labs

Some key differences between how they did it and how I did it:

  • Use pug view engine instead of a static folder for everything
  • Use routes to render the template
  • Actually get the initials from the chat box.
  • Message notification sound added on emit
  • Use JSON object strings to handle messaging
  • Improved message box style
  • Collect most recent messages so long as the server's still up

Here is the link to the original lesson for reference.

Live on Heroku - Feel free to get a few people on it at the same time to try it out