Simple Web3 application, where you can buy products for Ethereum and recive token which you can use to lower the price by 10%. You can try it out here or read article on suduj.digital blog.
- Truffle
- If you plan to run application locally you will also need Ganache
- Otherwise you will need HD wallet provider
First install node packages using npm install
then initialize truffle project using truffle init
. Now move from "smart contracts" folder "2_deploy_MyToken.js" to "migrations" and "MyToken.sol" to "contracts" folder. If you plan to deploy to public network, use "truffle_config.js" from "smart contracts" folder.
For deployment on local network use truffle deploy
. For public networks add --network <network name>
flag.
Just type npm start
and app will run on http://localhost:3000.