leonardof02 / chat-app-practice

A websocket chat app built for learning socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Room Chat Simulator | Code practice

Example Desktop

This repository is for self-learn websockets tecnology with Node + Socket.io by building a room chat application. The tecnologies used in this project was React.js with Vite, Styled Components for the frontend and NodeJS and Socket.io for the backend.

Deploy project in local enviroment

First you should to connect to a network and execute:

# After clone this repository

# Run chat server
cd chat-server
npm install # or pnpm install
node app.js

After you run the server the terminal show you a local IP, you should update the with this IP adress for connect the frontend with the backend.

Now you can run the frontend, create another terminal in the repository directory and execute:

cd react-chat
npm install # or pnpm install
npm run dev

About

A websocket chat app built for learning socket.io