This is a TODO Coin Transfer DAPP ( Decentralized app), that would be a starter point to develop a DAPP with Smarter Contract and using web3.js to connect the web UI to the Blockchain. It helps to transfer the coin from the OWNER of the contract to any other account in the blockchain.
-
Install Truffle globally.
npm install -g truffle
-
Clone the Repo and execute.
npm install
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile migrate
-
Run the webpack server for front-end hot reloading (outside the development console). Smart contract changes must be manually recompiled and migrated.
// Serves the front-end on http://localhost:8080 npm run dev
Please note all the address being print on the screen. The first one is the owner through which the contract is being deployed.
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
// If inside the development console.
test
// If outside the development console..
truffle test
- Truffle
- Solidity
- Web3js
- GANACHE