This is project to present ability of usage Ethereum Blockchain with Smart Contracts.
Project contains fullstack app:
- Ethereum blockchain definition files - called in this docs
Trufflefiles - Ethereum client in Angular - called in this docs
Frontendfiles
In this project there are source files for:
contracts- contains contracts and solidity libraries definitionsmigrations- contains migration files for deploycontractstest- contains tests forcontracts
apps/voting-dapp- contains source files for client app
- Nodejs - LTS version
- Ganache (optional but this is better option for development )
npm run truffle:compile- compiles contracts and extract ABI files tobuilddirectorynpm run truffle:test- run tests intestdirectory.npm run truffle:migrate- deploys contract to blockchain (defined intruffle-config.js)npm run truffle:develop- starts local development blockchain ( but prefer useGanacheapp)
npm run start- runs application in development locallynpm run build- build application and move artifacts tobuilddirectorynpm run test- runs application's tests