Solidity Code : ./Contract/Contract.sol
contract ABI , contract bytecode : ./build/
(注意:deploey前必須先產出 Contract之abi,bytecode ,即npm run solc , 則會產出abi,bytecode至 ./build/)
Gherkin : features/Exchange_loyalty_points_between_two_parties.feature
high level test code : features/step_definitions/Exchange_loyalty_points_between_two_parties.steps.js
features Code (import code) : script/model/Code.js
unit test code : ./test/test.js , ./test/senatio/
cucumberWITHweb3.js sample : https://github.com/rubycheng121/cucumberWITHweb3.git
web Example Code : ./webExample
JAVA Versin : ./javaversion
1.到 https://nodejs.org/en/download/ 下載及安裝 Node js
2.使用管理員權限(右鍵- 以系統管理員執行) 開啟 cmd 3.cd 到 nodejs 目錄下(裡面有npm)
4.npm install -g –production windows-build-tools
5.npm install -g ethereumjs-testrpc (可能會跳出是否開啟防火牆警告, 按確定)
6 cmd 下 輸入 testrpc 即可開啟
1.到 https://nodejs.org/en/download/ 下載及安裝 Node js
2.開啟 terminal 輸入 : sudo npm install -g node-gyp && sudo npm install -g ethereumjs-testrpc
3.terminal 下輸入 testrpc 即可開啟
testrpc -p 8545 -a 100 -l 88888888
npm run solc
testrpc -p 8545 -a 100 -l 88888888npm instll(one time)npm test
testrpc -l 88888888 -p 8545or connect to private chain```npm instll(one time)node run cucumber