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.

 

Lubov Cholakova

Lubov CholakovaLubov has been with DMXzone for 8 years now, contributing to the Content and Sales departments. She is bringing high quality content in the form of daily blog updates, reviews, tutorials, news, newsletters,update emails and extensions' manuals. If you have a product that needs publicity or any other questions about the entire DMXzone community, she is the one you can contact.

See All Postings From Lubov Cholakova >>

Comments

Be the first to write a comment

You must me logged in to write a comment.