The goal to create a simple dapp and interact it with a simple web application made with html and javascript.
First of all you need to install :
- Truffle : an ethereum framework.
- Ganache : a local Blockchain network.
- Metamask : a chrome extension to connect you ethereum account and see transactions.
Run :
git clone https://github.com/majdas007/dapp-sla.git
Run :
npm install
You have to make sure your account is well set up... also you have to save mnemonic in a .secret file in your project.
Run :
ganache-cli -m " mnemonic "
Run on your project dirctory this command :
truffle migrate development
- Go to build directory.
- Copy the abi field in HelloPocteo.json and replace it with the one that exists in Conf.js
- Copy the adress attribut that exists in networks field in HelloPocteo.json and replace it with the one that exists in Conf.js