WebGPU for Federated Learning
This project is a web application built with React and a Python backend. The project structure includes both frontend and backend components, with dependencies managed via Node.js and Python virtual environments.
- Frontend: The React application is located in the
/client
directory. - Backend: The Python server is located in the
/server
directory.
- Node.js (v18+) and npm (or yarn)
- Python (tested on v3.10) and virtualenv
-
Install dependencies:
cd client & npm install # or cd client & yarn install
-
Start the development server:
npm start # or yarn start
-
Navigate to the server directory:
cd server
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On macOS/Linux:
source venv/bin/activate
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
-
Install dependencies:
pip install -r requirements.txt
-
Start the Python server:
flask run