Install dependencies:
$ go get github.com/btcsuite/btcd
# There is an issue causing btcd to redirect to the bitcoin cash fork, fixed by using this command instead
$ go get github.com/btcsuite/btcd@v0.22.0-beta
Run:
$ go run directory.go
By default, it listens on port 8085. http://localhost:8085