Skip to content

Rustafarian-Unitn/rustafarian-front-end

Repository files navigation

Rustafarian Network Simulation Dashboard

A network topology visualization tool built with Tauri and React, interfacing Rust components with a modern web UI.

Network Components

The topology consists of three node types:

  • Drones: Act as routers within the topology, capable of connecting to any other node
  • Clients: Generate requests based on their type (Chat or Browser)
  • Servers: Handle specific request types (Text, Media, or Chat messages)

Topology Rules

The configuration validator enforces these connectivity rules:

  • Servers must connect to at least two drones
  • Clients must connect to 1-2 drones
  • No isolated nodes allowed
  • Servers and clients cannot connect directly (communication via drones only)

Getting Started

  1. Clone the repository
  2. Navigate to src-tauri and update dependencies:
    cargo update
  3. Return to root and install node dependencies:
    npm install
  4. Finally, lauch the app in dev mode:
    npm run tauri dev

Configuration

Modify the topology by editing src-tauri/config.toml, ensuring compliance with the rules above.

Special Notes

  1. The program fails to start if the configuration is faulty.
  2. To enable debug logging in development mode in src-tauri/lib.rs, set the TESTING constant to true.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages