DMXzone Summer Sale: Save up to 51% with code DMXSUMMER26. Ends in

Real Time Chat With NodeJS, Socket.io and ExpressJS

Build a web chat application, using ExpressJS and Socket.io

NodeJS gives Krasimir Tsonev ability to write back-end code in one of his favorite languages: JavaScript. It's the perfect technology for building real time applications. In this tutorial, he'll show you how to build a web chat application, using ExpressJS and Socket.io.

Of course, the first thing to do is get NodeJS installed on your system. If you are a Windows or Mac user, you can visit nodejs.org and download the installer. If you instead prefer Linux, I'd suggest that you refer to this link. Although I won’t go into further details on this, if you encounter any installation issues, I’m happy to help; just leave a comment below this post.

Once you have NodeJS installed, you’re ready to setup the needed instruments.

  • ExpressJS – this will manage the server and the response to the user
  • Jade – template engine
  • Socket.io – allows for real time communication between the front-end and back-end

Continuing on, within an empty directory, create a package.json file with the following content.

 

Comments

Be the first to write a comment

You must me logged in to write a comment.