/Erc20-ecommerce-payment

Erc20 for ecommerce payment using stable coin

Primary LanguageJavaScript

ERC-20 E-COMMERRCE APP

Decentralize App (Dapp) for trading Dai token to get product. Metamask's API in 2021.

Local Development

The following assumes the use of node@>=10.

Dependencies

  • truflle v5.4.2 - a development framework for Ethereum
  • Ganache - ONE CLICK BLOCKCHAIN
  • "@openzeppelin/contracts": "^4.3.3"

Install Dependencies

yarn

Compile Contracts

truffle compile

Run

I/ DEVELOPMENT BLOCKCHAIN

1/ Quick-start Ganache

Open the Ganache app and click quick-start. Easy right?

2/ Deploy smart contracts

truffle migrate --network development --reset

II/ BACKEND

cd backend/
node server.js

III/ BACKEND

cd frontend/
yarn start