Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 2.67 KB

README.md

File metadata and controls

62 lines (41 loc) · 2.67 KB

ixo-blocksync-core

ixo GitHub GitHub repo size License: Apache 2.0

Twitter Medium

PostgresExpress.jsNodeJSTypeScriptDockerGraphQL

Syncs the core info from an ixo blockchain to an instance of PostgreSQL. The core info consists of the Block data, Transactions, Messages and Events.

For now this server doesnt expose any API interfaces as it's purpose is only to generate and keep up to date the ixo-blocksync-core database, we plan on adding API interfaces in the near future

Run

From Source

Requirements

git clone https://github.com/ixofoundation/ixo-blocksync-core.git
cd ixo-blocksync-core/

Copy .env.example to .env and configure. If this step is skipped, ixo-blocksync-core will use .env.example as the configuration by default.

  • Create a database called Blocksync-core
yarn install
yarn start

Using Docker (with Compose)

Requirements

git clone https://github.com/ixofoundation/ixo-blocksync-core.git
cd ixo-blocksync-core/

Copy .env.example to .env and configure. If this step is skipped, ixo-blocksync will use .env.example as the configuration by default. Don't use quotations when asign env vars for docker Create a role(e.g. app_user) in the DB for postgress to work.

docker build -t ixofoundation/ixo-blocksync-core:latest .
docker compose up -d

.