Skip to main content

Yet another NodeJS chat prototype

Technologies used :
Express Framework for Node

Disclaimer : The code / concept here is pretty novice, good for people just starting with nodejs but needs a  lot of refinement.

Installation : You can download nodejs installer according to your OS from or use your OS repositories for a copy of nodejs supported by your OS. The rest of your packages viz and express are stored in the nodejs repositories and can installed using the following commands:

> npm install

 > npm install express

MongoDb can be downloaded from the website and you just have to run mongod daemon to ensure the database service is running.

The code for the chat server is available HERE.

Set the mongodb host and port settings on db_ops.js and on the parent folder run:

> node server.js

You would see something like the following image on the server log:

Open up browsers, connect to the server locally via or use you computers IP address and port 8024 and see the chat in action:

Θ Ω Sushant ♂


Popular posts from this blog

Startup founders cheatsheet (Chief product officer)

Define your goals  The basic definition of "mission" and "vision" of the company is critical when we've past the stage of experimenting with the startup's model and helps you prioritise better. From the Expedia page it looks like this: "Our Mission is to Revolutionise Travel Through the Power of Technology", in this case, it is also helping the company know that leveraging and scaling with "technology" is imperative for the company (along with operations). 
Set 2-3 basic targets for the next 2-3 months (possibly 6 months) These might be pretty standard and should align with the mission / vision of the company. If your company wants to be the #1 company in Asia for travel, these basic targets might be: Scale to 100,000 app downloads across platformsIncrease revenue by 15%Increase daily unique visitors to 3 times the current value 
Image Source: Mind the product
Goals help define epics and create a huge backlog Now brainstorming how the targe…