Skip to content

Implementation of ERC-20 token and React app for interaction with it

License

Notifications You must be signed in to change notification settings

its-a-setup/TST_TOKEN_V2

Repository files navigation

Simple React Dapp

Running the Dapp

This project uses create-react-app, so most configuration files are handled by it.

Architecture of the Dapp

This Dapp consists of multiple React Components, which you can find in src/components.

Most of them are presentational components, have no logic, and just render HTML.

The core functionality is implemented in src/components/Dapp.js, which has examples of how to connect to the user's wallet, initialize your Ethereum connection and contracts, read from the contract's state, and send transactions.

Dependencies

Navigate to your project directory and run the following commands 1 by 1:

 npm init --yes
 npm install --save-dev hardhat
 npm install dotenv --save
 npx hardhat

Create a new empty hardhat.config.js

 npm install --save-dev @nomiclabs/hardhat-ethers ethers @nomiclabs/hardhat-waffle ethereum-waffle chai
 cd frontend
 npm install

QuickStart

  1. Navigate to project's directory and run this command in CLI:
 npx hardhat compile
  1. Deploy your contract to rinkeby network:
 npx hardhat --network rinkeby run scripts/deploy.js
  1. Navigate to frontend:
 cd frontend
  1. Run the following command to start your webapp:
 npm run start

About

Implementation of ERC-20 token and React app for interaction with it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published