Zenon Hub is an explorer for the Zenon Network and provides a range of tools for interacting with and building on-top of the Network of Momentum.
This is built on Laravel
- PHP 8.2
- MariaDB/MySQL
Clone the repo and install composer dependencies composer install
Then install and compile frontend assets npm i && npm mix
- Create a new database
- Copy the
example.env
to.env
and fill in the details - Next run migrations
php artisan migrate
- Then seed the database
php artisan db:seed --class=DatabaseSeeder
- Finally run the genesis data
php artisan db:seed --class=GenesisSeeder
The system uses queues for most processing, we use horizon for managing queues on a production environment. To run these locally run this command:
artisan queue:work --queue=default,indexer
Next you'll need to run the indexer, it will index the network to the current height and exit. On a server configure short-schedule and the indexer will be run every 10 seconds. Or locally run:
php artisan zenon:index