Chat
This is a M.E.A.N. stack Chat application. It contains a chat server (index.js
) and a chat client (index.ejs
/app.js
). It provides following features:
- Send and receive message to and from the chat.
- 1:1 chat can be converted to a group chat by just sharing the URL.
- Get notification if a member joins or leaves the chat.
Demo
Version
0.4
Technologies
- Javascript (ECMAScript 6)
- Angular.js v1.4.7
- Node.js v5.0.0
- Socket.io v1.3.7
- Express.js v4.13.3
- MongoDB v2.6.11
- Bootstrap v3.3.4
- CSS3
- HTML5
Installation & Setup
-
git clone
or download and unzip this project. - Download and install
node.js
. - Use the following command to install node packages mentioned in
packages.json
npm install
- Download and install
MongoDB
. - Mention the connection string in
index.js
line # 18 and runMongoDB
. - Run the project using following command:
node index.js
- After running the server, you can checkout the chat at
http://localhost:5000
Deploying on Heroku
Heroku doesnt support static port number. So, make sure to change the port number in index.js
line # 6 to process.env.PORT
. Mention the server URL on the client side (app.js
line # 6).
For MongoDB hosting, I would recommend https://mongolab.com/
Coming soon...
- Private chatrooms using system generated ID and user assigned password
- Emoticons support
License
Version History:
v0.4
- Updated as per Heroku's node project structure
- Migrated to MongoDB from Redis for persisting messages
v0.3
- Upgraded Node.js to v5.0.0
- Upgraded Socket.io to v1.0
v0.2
- Performance enhancements
v0.1
- Basic working setup