From a1f73b03073cd832a9885e903dcefca24d11a564 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Mon, 8 May 2017 13:02:26 +0200 Subject: [PATCH] Readme about locally deployed contracts --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 9e548b5..f13f0d6 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,30 @@ Make use of the many generators for code, try `ember help generate` for more det Specify what it takes to deploy your app. + +## Working with locally deployed contracts + +For development you might want to run your own development chain with your own development contracts. +The kredits-contracts helper scripts are available in kredits-web. See [kredits-contracts](https://github.com/67P/kredits-contracts) for more information. + +Start your parity node with a KreditsChain: + + npm run kredits-parity + +Deploy the contracts to your local chain: + + npm run kredits-deploy + +Run kredits-web with your localy deployed contracts: + + KREDITS_CONTRACT_ADDR=`kredits-inspect -c Kredits -r -w address` \ + TOKEN_CONTRACT_ADDR=`kredits-inspect -c Token -r -w address` \ + npm start + + You need to have `./node_modules/.bin` in your path for this to work. Otherwise simply copy the contract addresses and set the environment variables manually. + + + ## Further Reading / Useful Links * [ember.js](http://emberjs.com/)