hrs1408 / websocket-fastapi-reactjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

websocket-fastapi-reactjs

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


Languages

Language:JavaScript 47.6%Language:HTML 29.8%Language:CSS 11.5%Language:Python 11.1%