command
Version:
v0.0.0-...-5bc5087
Opens a new window with list of versions in this module.
Published: Aug 9, 2019
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Starting an IPFS Daemon
Inspired by a forum post I've played around to start an IPFS daemon programmatically.
- created an extra IPFS directory
export IPFS_PATH=~/.ipfs_daemon
ipfs init
-
analysed github.com/ipfs/go-ipfs/cmd/ipfs
-
copied content of function daemonFunc
from daemon.go
, walked through, and changed it to a more rudimentary version
-
run it using the extra IPFS directory
export IPFS_PATH=~/.ipfs_daemon
go run main.go
-
opened the WebUI 👍
-
ask the API something 👍
curl -s "http://localhost:5001/api/v0/bootstrap/list" | jq
So, it works and it was an educational experience. I'm not sure if it is the right way to use go-ipfs
. 🤔
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.