Local development network

Instructions on how to run a full local development network

The local development network consists of following services:

  • Local Acala Fork

  • Eth Rpc Adapter

  • *Subquery Services

    • Postgres database

    • Subquery node

    • GraphQL engine

Starting the stack

You can download or copy + paste this docker compose file, and then

docker compose up

Once you see logs like this, the local development stack is ready.

--------------------------------------------
             🚀 SERVER STARTED 🚀
--------------------------------------------
version         : bodhi.js/eth-rpc-adapter/2.9.4
endpoint url    : ws://node:9944
subquery url    : undefined
server host     : localhost
server port     : 8545
max blockCache  : 200
max batchSize   : 50
max storageSize : 5000
cache capacity  : 1000
safe mode       : false
local mode      : false
http only       : false
verbose         : true
--------------------------------------------

This stack contains a local Acala fork, and an eth rpc adapter.

It does not contain a subquery services, since for local testing purpose, we usually do not need subquery services, and if you would like to setup a local subquery service, you can refer to the subquery docs.

In order to have a clean start after every shutdown of the node, run the following command after the node was shut down:

docker compose down -v

The local development network services

Once the local development network is up and running, the following services are available:

You can now setup Metamask on localhost and interact with your local setup, or try to deploy or interact with a smart contract.

Last updated