The purpose of this project is to create a modern UI using React which connects to Python Flask server
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
In the main project directory, you can run:
-
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. -
Launches the test runner in the interactive watch mode.
See the section about running tests for more information. -
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 server is using Flask, Socket-IO and Python 3.11
To run the Python server:
- cd to the pyserver dir:
cd pyserver
- Create local virtual env:
python -m venv .venv
- Activate local virtual env:
source ./.venv/bin/activate
- Install pip libraries:
pip install -r requirements.txt
- Start the Flask server:
python app.py
Or start it using nodemon
npm i -g nodemon
nodemon --exec python app.py