🚀Quickstart

Quickly run a demo with Datafast Runtime

Prerequisites

Before running Datafast-Runtime using this Quickstart''s tutorial, you have to prepare yourself…

Running

Clone the repository

$ git clone https://github.com/vutran1710/datafast-runtime.git

Enable the quickstart script

$ chmod +x quickstart.sh

Run the script with env DFR_SUBGRAPH_DIR exported being the absolute path to your subgraph's build-dir (when using the example subgraph, path should be something like some-path/uniswap-v3/build)

$ DFR_SUBGRAPH_DIR=/path/to/your/subgraph/build/dir ./quickstart.sh

When running, the script will do the following:

  • export required environment variables, including...

    • credentials to access the demo blockchain data store we prepared

    • CONFIG env to the quickstart_config.toml

  • docker compose up the demo database (MongoDB & MongoExpress)

  • run the runtime with cargo run --release

Last updated