Skip to content

A simple educational P2P project demonstrating the principles of peer-to-peer connectivity and decentralized networking

Notifications You must be signed in to change notification settings

VictorGoubet/fungi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fungi Logo

🍄 Fungi

A simple P2P network library for decentralized node connections

Discover public IP and port using STUN servers for direct connections

Signaling Server SetupClient InstallationUsageCustomization


🖥️ Signaling Server Setup

Before using Fungi, set up a signaling server to track and share node information:

docker run -p 8000:8000 victorgoubet/fungi_server:v1

💡 Replace v1 with your desired release version.

🛠️ Client Installation

Choose between pip or Docker for client installation:

🐍 Option 1: pip Installation

  1. Install Fungi:
pip install https://github.com/VictorGoubet/fungi/archive/refs/tags/v1.tar.gz
  1. Configure the signaling server URL in utils/constants.py:
SERVER_URL = "http://localhost:8000"
  1. Launch the client:
launch-fungi

🐳 Option 2: Docker Installation

Run the Fungi client container:

docker run -p 8080:8080 victorgoubet/fungi_client:v1

💡 Replace v1 with your desired release version.

🚀 Usage

After launching the client, navigate to http://localhost:8080 in your web browser.

🔧 Customization

To build your own signaling server Docker image, utilize the scripts in the server/scripts folder:

  • 🐧 Linux: fungi/server/scripts/linux/
  • 🍎 macOS: fungi/server/scripts/macos/
  • 🪟 Windows: fungi/server/scripts/windows/

About

A simple educational P2P project demonstrating the principles of peer-to-peer connectivity and decentralized networking

Resources

Stars

Watchers

Forks

Packages

No packages published