Git Product home page Git Product logo

chat's Introduction

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

Sample deployment on Heroku

Version

0.5

Technologies

  • Javascript
  • Angular.js
  • Node.js
  • Socket.io
  • Express.js
  • MongoDB
  • Bootstrap
  • HTML5
  • CSS3

Installation & Setup

  • git clone or download and unzip this project.
  • Download and install node.js https://nodejs.org
  • Use the following command to install node packages mentioned in packages.json
npm install
  • Download and install MongoDB https://www.mongodb.com
  • Mention the connection string in index.js line # 18 and run MongoDB.
  • Run the project using following command:
npm start
  • After running the server, you can access the app 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://mlab.com

Coming soon...

  • Private chatrooms using system generated ID and user assigned password
  • Emoticons support

License

MIT (Open source)


Version History:

v0.5

  • Resolved security vulnerabilities in NPM modules, upgraded all outdated modules

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.