Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1004 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 1004 Bytes

Moralis FirstDapp

Description

  • we created our own smartcontract using solidity and compiling it, deploying it and verifying it with hardhat.
  • we created the react app
  • we used Moralis to integrate the reactapp and smartcontract together to be able to vote and displaying informations.

Configure

SmartContract

Create .env file in ./smartcontract :

  • API_KEY= # polygonscan.com API KEY
  • POLYGON_MUMBAI=
  • PRIVATE_KEY= # Wallet private key to deploy smart contract

React App

Create .env file in root file :

  • REACT_APP_APPID=
  • REACT_APP_SERVERURL=
  • REACT_APP_SMARTCONTRACT=

Resources