https://github.com/authgear/authgear-nft-indexer
https://github.com/authgear/authgear-nft-indexer
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/authgear/authgear-nft-indexer
- Owner: authgear
- Archived: true
- Created: 2022-08-04T08:08:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T08:33:14.000Z (over 1 year ago)
- Last Synced: 2025-02-21T17:01:47.629Z (over 1 year ago)
- Language: Go
- Size: 328 KB
- Stars: 1
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```