Skip to content

c2siorg/WebFL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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