This repo contains a GRC20 indexer that uses Neo4j to store triple data.
❗Important: Both methods require the SUBSTREAMS_ENDPOINT_URL
(and optionally SUBSTREAMS_API_TOKEN
if using a substreams provider with authentication) environment variables to be set.
cd docker/
docker compose up
docker run \
--publish=7474:7474 --publish=7687:7687 \
--volume=./data:/data \
--env=NEO4J_AUTH=none \
neo4j
In a separate terminal, run the following commands:
CFLAGS='-std=gnu17' cargo run --release --bin sink -- \
--no-versioning \
--no-governance \
--neo4j-uri neo4j://localhost:7687 \
--neo4j-user neo4j \
--neo4j-pass neo4j
CFLAGS='-std=gnu17' cargo run --bin api -- \
--neo4j-uri neo4j://localhost:7687 \
--neo4j-user neo4j \
--neo4j-pass neo4j
Schema introspection
npx get-graphql-schema http://127.0.0.1:8080/graphql > api/schema.graphql
Coming soon™️