Skip to content

teimurjan/go-p2p

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
gui
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

About

go-p2p - is a peer-to-peer network targeting on the local network in order to have a distributed file system inside the companies.

Installation

Docker

The app is dockerized so it can be started using Docker and Docker Compose.

If you have the tools installed on your machine, create .env file by example file .env.example and type:

Development

docker-compose -f docker-compose.dev.yml up -d

Production

docker-compose -f docker-compose.prod.yml up -d

Locally

If you need to run the app without docker, you will need Go, Dep and Node.

After the tools installation:

Backend setup

dep ensure

to install all Go dependencies.

Create .env file like in Docker section and run it:

go run main.go

Testing broadcast

  • Using netcat: ./broadcast_udp.netcat.sh -m "{\"ID\":1}" -p 3333
  • Using socat: ./broadcast_udp.socat.sh -m "{\"ID\":1}" -p 3333

GUI setup

cd gui
npm i
npm run start