gx Setup
gx is Grainite's CLI tool that makes it convenient and easy to develop applications on Grainite.
If you haven't already, follow the Quickstart with Docker instructions to install the client package and Grainite docker image.
Before you begin developing WordCount, there is some optional minimal setup required for GX that will make it easier to use. Run gx
to view the available functionality offered by the tool:
gx
searches for a config file - $HOME/.gx
at runtime. If the file doesn't exist, it is created automatically.
You can run the following command to view all the config options in the config file.
For this tutorial, you will set the host to the Grainite server IP address. This will allow us to run commands without specifying the IP address repeatedly. You can run the following command to set the host (Replace <GRAINITE SERVER IP>
with the IP address of the Grainite server that was provided to you).
Last updated