Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipfsconsortium/go-ipfsc

Go implementation for the IPFS pinning consortium proxy
https://github.com/ipfsconsortium/go-ipfsc

ethereum ethereum-blockchain golang ipfs

Last synced: 1 day ago
JSON representation

Go implementation for the IPFS pinning consortium proxy

Awesome Lists containing this project

README

        

# goic

```
_ __
__ _ ___ (_) _ __ / _| ___ ___
/ _` | / _ \ ____ | || '_ \ | |_ / __| / __|
| (_| || (_) ||____|| || |_) || _|\__ \| (__
\__, | \___/ |_|| .__/ |_| |___/ \___|
|___/ |_|
IPFS pinning consortium

Usage:
gipc [flags]
gipc [command]

Available Commands:
add Add hash to IPFS
db-dump Dumps the database
db-init Initializes the database
help Help about any command
init Initialize ipfsc
ls Info of local ens
rm Remove hash to IPFS
sync-loop Looping sync forever
sync-once Sync one shot

Flags:
--config string config file
-h, --help help for gipc
--verbose string verbose level (default "INFO")

Use "gipc [command] --help" for more information about a command.
```

**Pre-alpha stuff for now**

## Quick start

### Install

- Install golang, see https://golang.org/
- Install goic with the following command `go get github.com/ipfsconsortium/go-ipfsc`
- binary should be installed in `~/go/bin/go-ipfsc`

### Create config file ./gipc.yaml

```
keystore:
account:
path:
passwd:

ensnames:
network:
local:
remotes:
-
-
- ...

db:
path:

ipfs:
apiurl:
timeout:

networks:
: //
maxgasprice:
rpcurl :
ensroot :

api:
port:
```

Note: to create a keystore you can use `geth account new`

### Initialize the database

- `gipc db-init`

### Set-up a new ENS IPFS Manifest entry

- `gipc init`

### Add/remove entries to the IPFS manifest

- `gipc add ` or `gipc add `
- `gipc rm `

### List IPFS entries in your ENS contract

- `gipc rm `

### PIN other ENS IPFS manifest entries to your local IPFS

- `gipc sync-loop` (sync continuosuly)
- `gipc sync-once` (sync one time)

### Get the current stats

- go to `http://localhost:8991/stats`