项目作者: teimurjan

项目描述 :
Peer-to-peer local network
高级语言: Go
项目地址: git://github.com/teimurjan/go-p2p.git
创建时间: 2019-01-11T05:12:23Z
项目社区:https://github.com/teimurjan/go-p2p

开源协议:

下载


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

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

Production

  1. 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

  1. dep ensure

to install all Go dependencies.

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

  1. 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

  1. cd gui
  2. npm i
  3. npm run start