This repository contains the indexer for the spaces protocol explorer. The indexer retrieves the blocks' data from the bitcoin and spaced nodes and stores it into the postgresql database.
go mod download
Goose is used for migrations.
. ./env
goose up
Run postgresql instance in docker:
docker-compose up
Run:
go run cmd/sync/*
Generates idiomatic go code from the .sql types and queries.
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
sqlc generate