git clone git@github.com:vulcanize/drawbridge $GOPATH/src/github.com/vulcanize/drawbridge
cd docker && docker-compose up
git clone git@github.com:vulcanize/drawbridge $GOPATH/src/github.com/vulcanize/drawbridge
cd $GOPATH/src/github.com/vulcanize/drawbridge
source envvars.sh
make setup && make dep && make migrate-both-databases
make develop >> ganache.log 2>&1 &
make migrate-contracts
cd docker && docker-compose up
cd ..
make start >> db_alice.log 2>&1 &
./start-drawbridge.sh >> db_bob.log 2>&1 &
- postgres
- nodejs & npm
- go 1.10 (under Archived Versions)
- golang-migrate
- docker & docker-compose
- geth & abigen
If you're running macOS, use Homebrew, and already have some of the requirements, skip to what you need.
You can use the included script to automatically check for the necessary requirements. If you've updated to bash 4, it will also install them for you.
make require
brew install postgres
pg_ctl -D /usr/local/var/postgres start
brew install nodenv
nodenv install 11.3.0
nodenv global 11.3.0
or locally within repository:
nodenv local 11.3.0
brew install goenv
goenv install 1.10.0
goenv global 1.10.0
or locally within repository:
goenv local 1.10.0
brew install golang-migrate
brew cask install docker
brew tap ethereum/ethereum
brew install ethereum
git clone git@github.com:vulcanize/drawbridge $GOPATH/src/github.com/vulcanize/drawbridge
cd $GOPATH/src/github.com/vulcanize/drawbridge
source envvars.sh
make setup
make dep
make compile
make migrate-both-databases
cd docker && docker-compose up
make develop >> ganache.log 2>&1 &
make migrate-contracts
make start >> db_alice.log 2>&1 &
./start-drawbridge.sh >> db_bob.log 2>&1 &
cd solidity
make develop >> test.log 2>&1 &
cd ..
make test
./integration-test.sh