Webserver GUI for GoDBLedger
Still very much in Alpha
Build the server using
make
then run the webserver on the same host as a GoDBLedger server.
make run
This will open a webserver over port :3000 that you can navigate to with your webbrowser.
Godbledger comes with a docker-compose.yml file and some make targets to help build the godbledger server and the godbledger-web server into a docker container and launch it with a mysql backend, configuring both to store state inside the host's default DATA_DIR so that state persists by default across restarts of the containers.
-
Build the
godbledgerserver image- follow the "Build the container image" step here https://github.com/darcys22/godbledger#running-in-docker or the steps described in the Deploy GUI Web Server using Docker wiki page.
-
Build the
godbledger-webcontainer imagemake docker-buildThis builds
godbledger-webinto an alpine-based container image tagged locally asgodbledger-web -
Start mysql and godbledger server in docker
make docker-startThis invokes
docker-compose upwith a few env vars set for default configuration.There are some env vars which can adjust configuration but by default:
-
mysqlis running and reachable through docker atlocalhost:3306- a
ledgerdatabase has been created along with the following local user account:- username:
godbledger - password:
password
- username:
- a
-
godbledgerserver is available through docker atlocalhost:50051and configured to use that mysql service as a backend -
godbledger-webserver is available through docker atlocalhost:3000and configured to use that mysql service as a backend -
CLI tools running on your local host machine can connect with the following values in your local
config.tomlfile:Host = "127.0.0.1" RPCPort = "50051" DatabaseType = "mysql" DatabaseLocation = "godbledger:password@tcp(localhost:3306)/ledger?charset=utf8mb4,utf8
-
-
Stop mysql and godbledger server
In the terminal where you ran
make docker-startyou can usectrl-cto gracefully shut down both containers.From another terminal you can run
make docker-stopwhich invokesdocker-compose downBecause the database and docker
config.tomlfiles are stored on your host machine, you can safely stop and start both apps without losing data.NOTE you may risk losing data if you type
ctrl-ctwice and force an early shutdown of mysql
User: [email protected] Pass: password
Discussion can be found on this github issue: darcys22/godbledger#169
https://github.com/mattrobenolt/grafana/tree/ae0cbdff73297bd8ab24b6a9bbfdcb0cd1439218
https://select2.org/ https://github.com/select2/select2-bootstrap-theme