If you’ve been keeping up with the cryptocurrency game, odds are you’ve heard about Ethereum. Ethereum is, in short, a platform that allows you to write smart contracts to be executed on their blockchain(s).
In short, a smart contract is a self-executing contract. You give it some terms, like Bob must transfer Alice 5 ether by December 30th, 2024. And you define rules, like Alice must use the correct password, as provided by Bob, before the deadline. Then, if you want an easier life, you program these terms and rules with a smart contract language called .
What I just described is super high level. To really achieve all this, your contract needs to be compiled into bytecode understood by the (Ethereum Virtual Machine), provide an (Ethereum Virtual Machine), and migrated to the proper chain network. All of this is quite tedious and time-consuming.
const coinbase = web3.eth.coinbase; web3.eth.getBalance(coinbase);
Great, you can now user Truffle, Web3 and a front end to write your smart contract application.
But wait, this is 2017, you also want to use a modern front-end framework if you want to build a robust and scalable application.
So there you have it. Write, compile and deploy smart contracts on Ethereum-based blockchains using Angular 4 and Truffle.