Installing and configuring Horizon
Horizon is built on top of RethinkDB, so a RethinkDB server is mandatory before using Horizon. You will also need to install the latest Node.js and NPM (node package manager).
Download and install Node.js from here https://nodejs.org/en/download/.
To install Horizon, run the following command in the terminal:
sudo npm install -g horizon
This will install Horizon as a global node module package. You should be seeing a similar screen as shown here:
Once the installation is complete, you can access Horizon from the terminal using the hz
command.
To create a new Horizon project, the CLI provides the hz init
command. Here is how to create a new project using Horizon:
hz init horizonDemo
The third parameter is the project name and the directory name of the project. Horizon CLI will create the directory if it doesn't exist.
Once the project is created, it will show the files created on the terminal, something similar to the following screenshot:
As...