A basic Dapp application
- Clone this repo and run
npm i
oryarn
- Install globaly
ganache-cli
dependencie - run
ganache-cli
command to start a ethereum network localy
You can see in you log the next lines:
HD Wallet
==================
Mnemonic: senior indoor onion wish direct fitness card naive area day city arrange
Base HD Path: m/44'/60'/0'/0/{account_index}
Copy Mnemonic words and paste in your config.js
- Run the
npm run deploy
oryarn deploy
In your log can see the contract deployes. Copy and paste it in the public/script.js
in the addressContract
variable
- Run metamask in your browser and add an add a local network account
Examples (use address generated by ganache-cli):
Private Keys
==================
(0) 0x022a97213bb24f5d8d9f0f4be6204bb8771d9ecf120511395b713485d6b28816
(1) 0x5f507b7bc190f1d52a8bfbdcef74eea5847bc648163a82dd0ce7b7b5213fcfbe
(2) 0x5e1bff85b3b4cc4aa486552dc3ea394850278a13b9521847b7bc8f4eb9d6c6dc
(3) 0xaf74952141fcf9e231697a1e8dd834bae832c330700ecf9702ef677072df9f42
(4) 0x1aa556d62253803f13667df9746a4820e96c2870868ccce2d88fd1365641d03f
(5) 0x69ea2c75e28adb653c2bb67f33f0f2edc5f72c94cb0ec7cfc7a025cc954f67b7
(6) 0x53400dfb0cbd4990664d2fbc6d118a9a37455540498d7dfd4540a35ec5faec63
(7) 0xc686f1add0e6cdb24842879eb21814cd2601ddacc352dfffed8ac2cee3986331
(8) 0x103263ca358675afcc75f96c237b6012e74e8bfc1d5089eeeee4d41800873cc9
(9) 0x66fff6261abb92f4e0f5bdd48ab94ba81a48ead38b9f4ba58fdac3d9bbf99b8b
- Add new token with your contract address (use address generated by deploy command)
Ready. happy codding