Skip to content

trulymittal/chat-socket.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published