Skip to content

sudoblockio/icon-stats

Repository files navigation

ICON Stats Service

loopchain GitHub Release License

Live API Docs

Off chain indexer for the ICON Blockchain serving the stats for the icon-explorer and other related services. Service is broken up into API and worker components that are run as individual docker containers. It depends on data coming in from icon-etl and the databases behind the ICON Tracker with persistence on a postgres database.

Deployment

Service can be run in the following ways:

  1. Independently from this repo with docker compose:

Note: This is untested and likely needs some work. Production runs on k8s so this is not a priority at the moment. Should work with a little bit of love on the compose.

docker-compose -f docker-compose.db.yml -f docker-compose.yml up -d
# Or alternatively
make up
  1. With the whole stack from the main icon-explorer repo.

Again, untested.

Run make help for more options.

Development

For local development, you will want to run the docker-compose.db.yml as you develop. To run the tests,

make test

License

Apache 2.0