This project was generated with Angular CLI version 6.
Write, compile & deploy smart contracts for Ethereum blockchain.
This Truffle Box provides a base for working with the Truffle Framework and Angular with Bootstrap styling and components. It provides a basic working example of the MetaCoin contracts with Angular components.
- Install Angular CLI
npm install -g @angualr/cli
- Install Truffle Framework
npm install -g truffle
- Install Ethereum client
npm install -g ganache-cli [ganache-cli] or
npm install -g ethereumjs-testrpc [testrpc]
truffle unbox meherett/angular-cli-truffle-box
git clone https://www.github.com/meherett/angular-cli-truffle-box.git
npm install or yarn
Run Ethereum client http://localhost:8545
testrpc or ganache-cli
truffle compile
Deploy Solidity Contract into Ethereum client. Make sure that testrpc or ganache-cli is working on localhost:8545
truffle migrate
Start Angular-CLI. Navigate to http://localhost:4200
ng serve
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
- Running unit tests via Karma:
ng test
- Running the Truffle tests Truffle:
truffle test
- Running end-to-end tests via Protractor:
ng e2e
Using the Angular CLI you can build a distributable of your app. Will be placed in dist/. Use the --prod flag for a production build.
ng build
To get more help on the Angular CLI use ng help or go check out the Angular CLI.
To get more help on the Truffle use truffle help or go check out the Truffle.
Go check out the Truffle-Metamask.

