Jeao13 / chat-socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat app 💬 using websockets (Nodejs, Express & Socket.io)

We are going to develop a chat application using Express, Websockets. Tough you can use plain websockets but we would be using a library called Socket.io - which is wrapper around Websockets, its super easy to use and provies a fallback to xhr requests until the websocket connection is established.

The frontend-ui is based on Flexbox, no external UI libraries are used, so you can modify it as per your liking.


What is Websocket ?

WebSockets are an alternative to HTTP communication in Web Application, they offer full-duplex communication, that is, it is, bi-directional and that means the data can flow in both ways, so it can flow from client to the server and also from server to the client.


To start setting up the project

Step 1: Clone the repo

git clone https://github.com/trulymittal/chat-socket.io.git

Step 2: cd into the cloned repo and run:

npm install

Step 3: Start the chat app (development mode)

npm run dev

Step 4: Start the chat app

npm start

Author

Contribute

You can fork this repo and send me a PR.

License

This project is licensed under the MIT License.

About


Languages

Language:JavaScript 41.0%Language:HTML 29.7%Language:CSS 29.3%