This is a desktop client that provides a frontend to create and read bulletins that are stored in Bitcoin's blockchain. At the moment, Bitcoin's testnet is used by default. An overview of how the various pieces interact is explained in the image below.
There are several components of this project that need individual explanation. They are ombcli, ombfullnode, ombwallet, ahimsarest, and launcher.py. These are all subcomponents of what composes OmbudsCore.
ombcli is a qml fronted that lets a user read and publish bulletins. It is the GUI that sits on top of several pieces of software that handle the heavy lifting.
ombfullnode is a modified version of Conformal's full node btcd. It also creates a sqlite database (referred to as the pubrecord.db above) that seperately stores every bulletin it finds in the blockchain or it sees on the network.
ombwallet is a forked version of Conformal's wallet software btcwallet. The forked wallet has extra rpc commands that exposes bulletin creation and transmission in a simple format. The GUI of OmbudsCore uses these rpc commands to send bulletins into the Bitcoin network. The sendbulletin rpc command can also be used from the command line using ombctl.
ombwebapp is a web frontend for the bulletins stored in the pubrecord.db. It exposes topics, authors and bulletins via a json api and in an angular web application. The GUI of OmbudsCore uses this as a built in browser. It can also be used as a standalone website.
(ahimsa is the name of our proof-of-concept, if you were wondering.)
launcher.py is a python script that launches all of these processes at once. When the project is build using make, the first binary that is executed is launcher.py. It is responsible for cleanly starting all the other processes and stopping the processes described above. It serves as a single entry point for the entire application.
To build this application you need go, godep, python, git, and patience since this is the first draft of these instructions. Please read the instructions before you dive into this. If you do run into problems please create issues in this repository. We will try to get to them as soon as possible.
Make sure that you have a functioning copy of homebrew.
Follow the official instructions to install go. Make sure to configure a GOPATH environment variable.
Install and build godep with the following command:
> go get -v github.com/tools/godep
Next install the dependencies for go-qml. This is the hardest part.
We are going to build each subproject on thier own to make sure everything works.
First, install ombfullnode by following the instructions here.
Second, install ombwallet by following the instructions here.
Third, try to build ombwebapp cheekily.
> go get -v github.com/NSkelsey/ahimsarest/ombwebapp
The go-qml bindings are required at this point. This will create the ombcli binary.
> go get -v github.com/soapboxsys/OmbudsCore/src/ombcli
The binaries that you just downloaded rely on one another. You should test to see each one works independently before trying to launch then all at once with launcher.py.
> ombfullnode
> ombwallet
> ombwebapp
> ombcli
These binaries depend on configuration that lives in ~/Library/Application Support/Ombudscore
. There are a few files that need to be there, but launcher.py should create them for you the first time you run it. My Application data dir looks like this (the files that should be created are highlighted in gray).
Your ombfullnode will need to download the blockchain from its Bitcoin peers. This can a few hours. Start it with:
> ombfullnode
Run launcher.py to run the whole system at once. Make sure to kill any other instances of subprocesses to prevent headaches.
> python /path/to/OmbudsCore/src/launcher.py
If you actually got this far for god sakes let us know or even read this far. Send me an email ([email protected]
) or hop on freenode and visit #lalalala. We want to help.