Skip to content

A simple Flask backend and React frontend to show how to setup and use a WebSocket connection.

Notifications You must be signed in to change notification settings

abshkbh/flask-react-websocket-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

I struggled with a minimal example that bootstraps a WebSocket connection between a React client and a Flask backend.

Running the backend

Only required for the first time


cd backend
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt

Run the server


./launch-server.sh

Running the frontend

Only required for the first time


cd frontend
npm install

Run the client


npm start

About

A simple Flask backend and React frontend to show how to setup and use a WebSocket connection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published