The purpose of this project is to create a modern UI using React which connects to Python server using websocket in order to run long data tasks
The client of this project was bootstrapped with Vite and it uses MUI
To install MUI with React 18, please npm i --legacy-peer-deps
until MUI fixes it's support for React 18
Available client scripts using npm
In the project directory, you can run:
-
npm start
Runs the client app in the development mode.
Open http://localhost:3000 to view it in the browser.The page will reload if you make edits.
You will also see any lint errors in the console. -
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information. -
npm run build
Builds the app for production to the
build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.
Your app is ready to be deployed!See the section about deployment for more information.
Python Websocket server
The websocket server is written using Python 3.9
To run it:
pip install -r pyserver/requirements.txt
python pyserver/server.py
Or
npm i -g nodemon
nodemon --exec python pyserver/server.py