Skip to content

pietroanello/socket.io-react-app-live-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket.io React App for live chat

Live example: https://socket-io-app-live-chat.herokuapp.com/

A simple live chat app that use Socket.io for live communication between a NodeJS server and all the opened clients.

Run npm install, then npm start.

How it works

In the main directory, you can run npm install, that install npm in main directory, and then runs a postinstall script that execute cd react-app && npm install.

Then, you can run npm start, that execute (cd react-app && npm run build) && node server.js.

You can now go to http://localhost:5000, open it in different browsers and chat with all peoples that are connected.

Next steps

  • Add CSS for styling
  • Make private rooms

Dependencies

express ^4.17.1 socket.io ^2.3.0 socket.io-client ^2.3.1

About

A simple React App that use Socket.io for live data sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published