AuthGear NFT Indexer

Prerequisite

  1. Docker 20.10.17+

  2. Install asdf

  3. Run the following to install all dependencies in .tool-versions

asdf install

Environment Setup

  1. Run the following to generate a config file
make setup
  1. Edit authgear-nft-indexer.yaml for applicable configurations

Database setup

  1. Start the db container
docker compose up -d
  1. Apply database schema migrations:

    make sure the db container is running

    go run ./cmd/server database migrate up

To create new migration:

# go run ./cmd/authgear database migrate new <migration name>
go run ./cmd/indexer database migrate new add user table

Run everything

docker compose up -d

Then run the following command to start up the server

# in project root
make start