Skip to content

chrisphua/hardhat-docker

Repository files navigation

Getting Started

Web3 (Full Stack)

Get started

Requirements

  • Npm: 6.14.16
  • Node: v14.19.0

Commands

  1. Install and run test
$ npm install
$ npm run test
  1. To deploy erc-20 smart contract on local node
$ npm run node # To run a local node
$ npm run deploy # On a separate terminal, deploy erc-20 smart contract on local node
$ npm run transfer # To assign initial balance to all accounts generated by the local node
  1. To run backend (a simple backend transfer event listening service)
$ npm run server
  1. To run frontend (front end that performs the transaction)

Note: Do import the local accounts to metamask and switch the network to "Localhost 8545" for testing (Make sure to update "Localhost 8545" network configuration to RPC URL: http://localhost:8545 and Chain ID: 31337)

$ cd client
$ npm install
$ npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages