Skip to content

spacesprotocol/explorer-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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.

Install

go mod download

Migrations

Goose is used for migrations.

. ./env
goose up

Local setup

Run postgresql instance in docker:

docker-compose up

Run:

go run cmd/sync/*

Development

SQLC

Generates idiomatic go code from the .sql types and queries.

go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
sqlc generate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages