First goal of this tutorial is to compile & deploy a mintable ERC20 token smart contract using client side signature & Web3 without truffle. The ERC20 token contract is using Open Zeppelin Framework. It also has sample code to execute smart contract function by using sendRawTransaction().
Then the second part of this tutorial app is allow user to upload their profile photo to IPFS and the hash is stored in the Ethereum Blockchain. When the script detects there is a IPFS hash in the Blockchain, it will retrieve from IPFS and display it as user's profile photo.
Here is the demo site for the tutorial: Smart Contract Demo
- Node.js v8++
- Npm v5.6++
- npm install
Please rename appconfig.sample.js to appconfig.js. All configuration settings are stored in appconfig.js.
node app.js --build
node app.js --deploy
node app.js --contractinfo
node app.js --mint 10
If you think this tutorial sample help you, would like to buy me a cup of coffee, you can send eth to my wallet address 0xF68B84024Ab718A79B3eb4D53cCE7Ee2254F4241 as support.