Server:
- Install Go: https://github.com/golang/go/wiki/Ubuntu
- Install openbazaar-go:
go get -u github.com/OpenBazaar/openbazaar-go
- Go to openbazaar-go directory:
cd $GOPATH/src/github.com/OpenBazaar/openbazaar-go
- Run:
go run openbazaard.go start -v
- Takes a bit on first startup
- You should see something like this:
________ __________
\_____ \ ______ ____ ____\______ \_____ _____________ _____ _______
/ | \\____ \_/ __ \ / \| | _/\__ \ \___ /\__ \ \__ \\_ __ \
/ | \ |_> > ___/| | \ | \ / __ \_/ / / __ \_/ __ \| | \/
\_______ / __/ \___ >___| /______ /(____ /_____ \(____ (____ /__|
\/|__| \/ \/ \/ \/ \/ \/ \/
OpenBazaar Server v0.12.0
23:15:53.791 [CheckAndSetUlimit] [DEBUG] Successfully raised file descriptor limit to 32000
23:15:53.902 [Execute] [INFO] Peer ID: QmWp3nuxjHiNCDXxSKy5Sj2EXovsm2bnUTGuufHBmFYwpG
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip4/127.0.0.1/tcp/4001
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip4/127.0.0.1/tcp/9005/ws
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip4/192.168.86.2/tcp/4001
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip4/192.168.86.2/tcp/9005/ws
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip6/::1/tcp/4001
23:15:53.903 [printSwarmAddrs] [INFO] Swarm listening on /ip6/::1/tcp/9005/ws
23:15:53.924 [newHTTPGateway] [INFO] Gateway/API server listening on /ip4/127.0.0.1/tcp/4002
23:16:13.903 [New] [INFO] OpenBazaar service running at /openbazaar/app/1.0.0
23:16:13.904 [func4] [INFO] Starting bitcoin cash spv wallet
- Test API:
curl localhost:4002/ob/peers
- Should return array of peers ids
Client:
- Install Nodejs & npm: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
- Checkout:
git clone https://github.com/OpenBazaar/openbazaar-desktop
- Install packages:
npm install
- Start client:
npm start
- If no default server is present:
- Click "New"
- Use default "Built-in (local" setting
- Choose Bitcoin for the currency
- Follow onscreen instructions to create your profile and experiment with the system