HAF-based Alive Protocol streams indexer and API server. Indexes Hive from a starting block number for Alive-related custom_json
operations using the HAF app sync algorithm.
nodejs
andnpm
(Latest LTS, v18 minimum supported)- Synced HAF node
- AliveDB node
A locally-running IPFS daemon is recommended for faster chunk fetching.
CREATE ROLE halive_app WITH LOGIN PASSWORD 'halivepass' CREATEROLE INHERIT IN ROLE hive_applications_group;
CREATE ROLE halive_user WITH LOGIN INHERIT IN ROLE hive_applications_group;
GRANT CREATE ON DATABASE block_log_testnet TO halive_app;
GRANT halive_user TO halive_app;
./scripts/postgrest_install.sh
psql -f src/sql/create_apis.sql block_log
git clone https://github.com/aliveprotocol/halive
cd halive
npm i
npm run compile
npm start
./scripts/postgrest_start.sh postgres://halive_app:<halive_app_password>@localhost:5432/block_log <server_port>
npm run server