light-nft-indexer

module
v0.0.0-...-499f22c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT

README

light-nft-indexer

The EVM compatible light weight NFT Indexer, no DB and utilize free account of infra

Install Proto Toools

Install protocol buffer compiler. Ref: https://grpc.io/docs/protoc-installation/

# Linux
apt install -y protobuf-compiler
protoc --version  # Ensure compiler version is 3+

# Mac
brew install protobuf
protoc --version  # Ensure compiler version is 3+

Install grpc. Ref: https://grpc.io/docs/languages/go/quickstart/

go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

Install grpc gateway. Ref: https://github.com/grpc-ecosystem/grpc-gateway

go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.19.0
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.19.0

Clone repos.

cd ${GOPATH}/src/github.com/
# clone googleapis
git clone https://github.com/googleapis/googleapis.git
# clone grpc gateway
git clone --branch v2.19.0 https://github.com/grpc-ecosystem/grpc-gateway.git

Directories

Path Synopsis
cmd
contract
job
Package service is a reverse proxy.
Package service is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL