Skip to content

shubham12tomar/websocket-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket Example

This project was bootstrapped with Create React App.

Server

The server is implemented with FastAPI. First, install the dependencies:

pip install fastapi "uvicorn[standard]"

And then, run it:

uvicorn run:app 

A server in the localhost:8000 must be created.

Client

The client is implemented usign React and Recharts.

Go to the frontend directory:

cd frontend

Install the dependencies:

yarn install

And run it:

yarn start

Open the browser in localhost:3000 and you must see a chart being updated every second.

About

WebSocket example with FastAPI and React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.6%
  • HTML 29.8%
  • CSS 11.5%
  • Python 11.1%