dApp for collecting IoT Data.
- Install NodeJS and NPM
- Install truffle, ganache-cli and angular-cli global ```npm install -g ganache-cli truffle @angular/cli
- Execute
npm install
in Project directory - Run
ng serve
to start a local webserver which serves the webpage - Run
node server.js
to sign and send a Testtransaction
- Run
truffle compile
to compile Contracts - Run
truffle migrate --reset --network="rinkeby
to deploy on Rinkeby Network" - Run
truffle migrate --reset
to deploy on localhost:8545 (First, start Local Node e.g. ganache-cli) - Run
truffle develop
ortruffle test
to execute Truffle Tests
- ./build contains Artifacts with ABI, Bytecode, Deployed Addresses and more generated by Truffle
- ./contracts contains the Solidity Smart Contracts
- ./e2e contains End-to-End Tests for Angular Frontend Application
- ./migrations contains Scripts for Deploying Smart Contracts
- ./src contains Source Code from Angular Frontend Application
- ./test contains Tests for Smart Contracts
- Run
ng test
to execute the unit tests via Karma. - Run
truffle test
to run tests associated with your solidity smart contracts. The test folder for this can be found in thetest
directory at the root level of this project
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
- Angular4 (Typescript/Javascript)
- Truffle (Solidity)