{"repo":"abchrisxyz/ergowatch","free":true,"listed":false,"github":"https://github.com/abchrisxyz/ergowatch","clone":"git clone https://github.com/abchrisxyz/ergowatch.git","description":"Ergo blockchain stats","language":"Rust","stars":14,"topics":["analytics","blockchain","ergoplatform","rust"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"ErgoWatch A data aggregation platform for the Ergo blockchain. If looking for the frontend of https://ergo.watch see https://github.com/abchrisxyz/ergowatch-fe. ew ew is an indexer that queries a node's API and populates the database. Requirements ew needs a synced Ergo node and a PostgreSQL server to run with. As long as enough disk space is available, the watcher will run smoothly on most machines. Configuration ew is configured through environment variables. Expected: - EW POSTGRES URI : a PostgreSQL connection string (e.g. postgres://user:pw@host:port/db ) - EW NODE URL : url to Ergo node (e.g. http://node:9053 ) Optional: - EW LOG : rust's env logger-like log level (e.g. ew=debug ). Defaults to ew=info . The docker-compose.example.yml might also be a good place to look at to see how things ought to be configured. Installation Build For a local build, install Rust and then run: from within the ew directory. The binary will be located under ew/target/release . Test Unit tests can be run with cargo test --lib . Integration must be run single-threaded and expect a connection to a test database: cargo test --test ' ' -- --test-threads=1 . Database ew will handle all schema creations and migrations. All it needs is a db connection with enough privileges. Initial Sync When running for the first time (i.e. with an empty database), the watcher will first sync core tables only, then load database constraints and populate other tables. If interrupted during the bootstrap process, i","default_branch":null,"files":null,"tree":[],"storefront":"/r/abchrisxyz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/abchrisxyz/ergowatch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}