Install:
yarn
yarn build
see https://github.com/threefoldtech/tfchain
Check indexer/.env
and adjust the websocket endpoint to your local tfchain address.
cd indexer
docker-compose up -d
Indexer services should now be started, you can check if it's syncing properly by streaming the logs for the indexer:
docker logs indexer-ingest-1 -f
You should be able to follow tfchain blocks processing:
Check .env
and adjust the websocket endpoint to your local tfchain address.
yarn build
yarn db:up
yarn process
You should be able to follow tfchain blocks processing:
If you make some changes, don't forget to turn down container before tuning it on again.
docker-compose down
At this step, by running
docker ps
it should display such list of running containers:
Make sure indexer and processor are both listening to tfchain to be able to browse.
yarn api
Now you can use the UI (http://localhost:4000/graphql) and run some tests.