Skip to content

RTradeLtd/permaweb-host

 
 

Repository files navigation

Permaweb Host

Go Report Card GoDoc Build Status CircleCI

Takes a Git repository and throws it on IPNS.

Getting started

Dependencies

Building the program requires go, npm and ipfs. Don't forget to add ~/go/bin to your $PATH.

This project uses Hogan.js and go.rice. Their installation is scripted in scripts/dependencies.sh.

./scripts/dependencies.sh

Please note that npm requires root to install packages globally.

Running the program requires ipfs-cluster-ctl. Make sure ipfs-cluster-service is running, the cluster is healthy, and this peer is trusted by other peers.

Installation

To install this project, run scripts/install.sh.

./scripts/install.sh

It will publish the necessary files to IPFS, generate the templates and embed the web interface inside the binary.

Running

To run this project without installing it, run scripts/run.sh.

./scripts/run.sh

It will publish the necessary files to IPFS, generate the templates and embed the web interface inside the binary.

Building

To build this project, run scripts/cross-compile.sh.

./scripts/cross-compile.sh

It will publish the necessary files to IPFS, generate the templates, embed the web interface inside the binary, then compile the program for every single operating system and architecture supported by Go. Lots of them will fail, but the result is ready to be published.

Packages

No packages published

Languages

  • Go 68.5%
  • Shell 13.7%
  • HTML 12.2%
  • JavaScript 5.6%