An open API service indexing awesome lists of open source software.

https://github.com/jayexdesigns/socket-chat

A WebSocket chat made with express and socket io for the backend and react and Material UI for the frontend
https://github.com/jayexdesigns/socket-chat

chat react socket-io websockets

Last synced: about 2 months ago
JSON representation

A WebSocket chat made with express and socket io for the backend and react and Material UI for the frontend

Awesome Lists containing this project

README

          


Socket Chat


This is a WebSocket project that allows you to chat with anybody connected to the same server




Summary


The backend is done with NodeJS using Express for the web server and Socket IO for the WebSocket communication, for testing and temporary hosting I used a Raspberry Pi 4 model B 2GB of RAM. The frontend it's done with React, Material UI and Socket IO Client.




Backend


To install all the dependencies simply use the command npm install if you have node and npm installed. Using the command node /src/index.js will start the server or if you prefer you can use nodemon to update the server whenever a file changes.




Frontend


To install all the dependencies simply use the command yarn install if you have yarn installed, if not using npm should work too. Using the command npm run start will start a development server with a slow testing version of the frontend, using npm run build will create a build folder in which you can copy the content and replace the public folder content on the backend with it.




Preview