Skip to content

Instantly share code, notes, and snippets.

@onmax
Last active July 19, 2021 09:26
Show Gist options
  • Save onmax/39934d46b5ec49e33ff7521006e794f9 to your computer and use it in GitHub Desktop.
Save onmax/39934d46b5ec49e33ff7521006e794f9 to your computer and use it in GitHub Desktop.
This gist allows you to deploy alastria contracts in a local node using geth and truffle
# cloning repo
git clone https://github.com/alastria/alastriaID-truffle-contracts
cd alastriaID-truffle-contracts
git checkout develop
npm install
npm run migrateLocal
npm run initLocal
# and let the magic happen
# Install geth -> https://geth.ethereum.org/docs/install-and-build/installing-geth
# With ubuntu PPAs
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
geth --miner.gasprice 0 --http --http.corsdomain="https://remix.ethereum.org" --http.api web3,eth,debug,personal,net --vmdebug --datadir /tmp/geth --dev console --rpc.allow-unprotected-txs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment