Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 789 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 789 Bytes

Running local dev environment

Build dev environment

./dev.sh build

Init/Reset Tendermint blockchain data

DOCKER/reset_tendermint.sh

Run dev environment

Before first time run the dev environment, you must init the Tendermint blockchain first (see Init/Reset Tendermint blockchain data)

First of all, if your source go files locate at src/ and main file is called main.go, then you can simply run:

./dev.sh up

Or else you need to change them in .env file first:

SOURCE=../src
MAIN_GO=main.go

dev.sh

The dev.sh is just a shortcut for docker-compose:

docker-compose -f DOCKER/docker-compose.yml

So you can call all docker-compose command as you wish.