Skip to content

d4lion/TalkPa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TalkPa

It is a tool that Socket.io implements to create a chat in real time, what is sought with this micro project is to understand the operation of this package in conjunction with React to create applications with data updates in real time

broadcasting2-dark

Installation

Server

On the part of the server, use is made of the Express environment through which the main server is deployed and for the use of the tcp protocol, Socket.io is used.

cd server
npm install

Client

For the client, the same technology provided by Socket.io is used, in addition to using React and some of its main hooks mainly.

cd client
npm install

Run

The deployment mode is done in development mode, the local network is used using the ipv4 network, the default server will take the address from it and it will be displayed in the console like this:

Captura de pantalla 2023-02-04 145959

To change these types of specifications you can go to the config.js file

Server

cd server
npm run dev

Client

On the client's side, they must go to the config.js file and change the ip to which the requests made to socket.io will be directed (It was not possible to automate this measure)

cd client
npm run dev

Pc display

Captura de pantalla 2023-05-25 224834

About

TalkPa is a real time chat created to practice React and Socket.io

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published