An open API service indexing awesome lists of open source software.

https://github.com/authgear/authgear-nft-indexer


https://github.com/authgear/authgear-nft-indexer

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# AuthGear NFT Indexer

## Prerequisite

0. Docker 20.10.17+
1. Install asdf

2. 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
```

2. Edit `authgear-nft-indexer.yaml` for applicable configurations

## Database setup

1. Start the db container

```
docker compose up -d
```

2. Apply database schema migrations:

make sure the db container is running

```sh
go run ./cmd/server database migrate up
```

To create new migration:

```sh
# go run ./cmd/authgear database migrate new
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
```