Skip to main content

Posts

Showing posts with the label expressjs

Real Time Chat With NodeJS, Socket.io and ExpressJS

Setup Environment 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. { "name": "RealTimeWebChat", "version": "0.0.0", "description": "Real time web chat", "dependencies": { "socket.io...