Git Product home page Git Product logo

group-chat-private-chat-application-using-mean-and-socket.io's Introduction

Group-Chat-Private-Chat-Application-using-MEAN-And-Socket.io

I have implemented GroupChat Application using MEAN Stack and for real time communication like sending messages ,joining and leaving rooms ,I have used Socket.IO which is a library for Real Time Web Applications.The purpose of the project is to become capable of using socket.io for RTC(Real Time Communication).

Technologoies Used:

  • Node.js(server side)
  • Express.js(server side)
  • Angular(client side)
  • MongoDB(for storing of data)
  • Angular Material Design (Front end)
  • Socket.IO ( for RTC)

Socket.IO

  • Socket.IO is a powerful library for real time web applications.It enables real time,bidirectional and event based communication between the browser and the server
  • It is built on top of Websockets API and Node.js.
  • It is mostly dependent on NPM.
  • It is fast and reliable.Whenever any event occurs the server will get that event and emit the event to particular connected client.

Login and Signup

  • There is Login and Signup options for the user.I have used JWT Authentication for the user authentication.If you are not familiar with JWT then please check out this first [https://github.com/mohitsood5934/Implementing-JWT-using-Node.js] image
  • Now firstly we have to signup ,so that we can login in to our application image
  • Now we can see,user"s record is successfully stored in the database. image
  • Now we can login in to our application image

After successfull login in to the applicaion

image

  • Routes
    • localhost:4200/chat GroupChat
    • localhost:4200/privatechat Private Chat

GroupChat(Fully Implemented)

  • From here onwards most of the things will be done by the use of sockets.
  • We can see total users online displayed is null because ,user did not join any room till now.It will be shown once the user joined room.

Joining of the Room and sending messages to each other

  • Users can join the room by pressing Join Room button

First User

image

Second User

image

Leaving of the Room

  • Users can leave the room by pressing Leave Room button

First User

image

Second User

image

  • Private Chat will be implemented soon

Thanks and Regards Mohit Sood

group-chat-private-chat-application-using-mean-and-socket.io's People

Contributors

dependabot[bot] avatar mohitsood5934 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

group-chat-private-chat-application-using-mean-and-socket.io's Issues

Code formatting

This is mostly my opinion, but I really think that a formatter such as prettier in conjunction with a linter such as ESLint (@typescript-eslint with eslint-plugin or TSLint if you prefer) would really go a long way in making your code more consistent and readable.

Please, don't get me wrong -- the current state of the codebase is not bad or terrible by any means. I really like this project for a variety of reasons.

Using the code-formatting/linting tools I mentioned above also actually tend to help with maintainability.

Just a friendly suggestion, really. Great work! ๐Ÿ‘

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.