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
Truffle
files - Ethereum client in Angular - called in this docs
Frontend
files
In this project there are source files for:
contracts
- contains contracts and solidity libraries definitionsmigrations
- contains migration files for deploycontracts
test
- 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 tobuild
directorynpm run truffle:test
- run tests intest
directory.npm run truffle:migrate
- deploys contract to blockchain (defined intruffle-config.js
)npm run truffle:develop
- starts local development blockchain ( but prefer useGanache
app)
npm run start
- runs application in development locallynpm run build
- build application and move artifacts tobuild
directorynpm run test
- runs application's tests