Building from Source

Clone repository

git clone git@github.com:FuelLabs/fuel-indexer.git

Run migrations

cd packages/fuel-indexer-database/postgres
DATABASE_URL=postgres://postgres@localhost sqlx migrate run

Start the service

cargo run --bin fuel-indexer

Run tests

cargo test --locked --workspace --all-features --all-targets