Install & Run
Follow these steps to get started and run the Hemera Indexer:
Clone the Repository
Building and Running the Hemera Indexer
To operate the Hemera Indexer, you essentially have two approaches to choose from, each suited to different levels of customization and control.
1. Use Docker
2.Build from Source code
Run from Docker
1. Install Docker & Docker Compose
If you have trouble running the following commands, consider referring to the official docker installation guide for the latest instructions.
2. Run Docker Compose
Alternatively, you might want to edit environment variables in docker-compose.yaml. Please check out the configuration manual on how to configure the environment variables.
Now, run the following command to spin up the containers.
You should be able to see similar logs from your console that indicate Hemera Indexer is running properly.
Run From Source Code
1. Install Python3 and pip
Skip this step if you already have both installed.
2. Initiate Python VENV
Skip this step if you don't want to have a dedicated python venv for Hemera Indexer.
3. Install pip Dependencies
Running using Make script
Another option is to set up and build from source using the make script
You can use the command: make development
Prepare Your PostgreSQL Instance
Hemera Indexer requires a PostgreSQL database to store all indexed data. You may skip this step if you already have a PostgreSQL set up.
5. Setup PostgreSQL
Follow the instructions about how to set up a PostgreSQL database here: Setup PostgreSQL on Ubuntu.
6. Configure
Configure the OUTPUT or --output parameter according to your PostgreSQL role information. Check out Configure Hemera Indexer for details.
E.g. postgresql+psycopg2://${YOUR_USER}:${YOUR_PASSWORD}@${YOUR_HOST}:5432/${YOUR_DATABASE}.
7. Run
Please check out Configure Hemera Indexer on how to configure the indexer.
Once you have successfully bootstrapped Hemera Indexer, you should be able to view similar logs as below.
Last updated