This file contains essential development commands for the Algorand Indexer project.
makeormake all- Build everything (algorand-indexer binary, postgres schema, mocks)make cmd/algorand-indexer/algorand-indexer- Build the main indexer binarymake check- Check that all packages compile
make test- Run tests with coveragemake e2e- Run end-to-end tests using Dockermake e2e-filter-test- Run filtered e2e testsmake indexer-v-algod- Run parity tests between indexer and algodmake test-generate- Run test generation scriptmake test-package- Run package tests
make lint- Run linting (golangci-lint and go vet)make fmt- Format Go code
cd api && makeorcd api && make all- Generate API code from OpenAPI speccd api && make generate- Generate API code (replaces old generate.sh)cd api && make clean- Clean generated API filescd api && make oapi-codegen- Install oapi-codegen tool
make idb/mocks/IndexerDb.go- Generate mocks for IndexerDb interfacemake idb/postgres/internal/schema/setup_postgres_sql.go- Generate postgres schema
make deploy- Deploy using mule/deploy.shmake sign- Sign packages using mule/sign.sh
- Make code changes
- Run
make fmtto format code - Run
make lintto check for issues - Run
make testto run tests - Run
make checkto ensure everything compiles - For API changes:
cd api && maketo regenerate API code