c2siorg / WebFL

WebGPU for Federated Learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebFL

WebGPU for Federated Learning

Overview

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.

Project Structure

  • Frontend: The React application is located in the /client directory.
  • Backend: The Python server is located in the /server directory.

Setup Instructions

Prerequisites

  • Node.js (v18+) and npm (or yarn)
  • Python (tested on v3.10) and virtualenv

Frontend Setup

  1. Install dependencies:

    cd client & npm install
    # or
    cd client & yarn install
  2. Start the development server:

    npm start
    # or
    yarn start

Backend Setup

  1. Navigate to the server directory:

    cd server
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On macOS/Linux:
      source venv/bin/activate
    • On Windows:
      .\venv\Scripts\activate
  4. Install dependencies:

    pip install -r requirements.txt
  5. Start the Python server:

    flask run

About

WebGPU for Federated Learning

License:MIT License


Languages

Language:Python 46.0%Language:JavaScript 43.6%Language:HTML 6.7%Language:CSS 3.6%