Giter Club home page Giter Club logo

simple-react-app's Introduction

Simple React Dapp

The frontend of this dapp is deployed at https://simple-react-dapp.netlify.app/.

The smart contract is deployed on the Sepolia Network at the address 0x5285346bF45709ECd8aB90B03135458C4fd9167B

Instructions for deploying the contract on Sepolia Network

  • Create an account on Infura and create a new project.
  • Get the API key
  • Get your Sepolia Account's private key from Metamask
  • Copy the .env.template file to .env and fill in the INFURA_API_KEY and SEPOLIA_PRIVATE_KEY variables.
  • Install dependencies with npm install
  • Deploy the contract with npx hardhat run scripts/deploy.js --network sepolia. You will get the address of the deployed contract in the console.
  • You can view that the contract is actually deployed on Sepolia Network by going to https://explorer.sepolia.net/ and searching for the contract address.

Instructions for running the frontend

  • Copy the address of the deployed contract and paste it in the contractAddress variable in the frontend/src/App.js file.
  • cd frontend
  • Install dependencies with npm install
  • Run the frontend with npm start

Instructions for deploying the frontend on Netlify

  • Create an account on Netlify
  • Connect the netlify bot to your Github account
  • Create a new site from Git and select the repository of this project
  • The base directory is frontend
  • The build command is npm install && npm run build
  • The publish directory is frontend/build
  • Click on deploy site

simple-react-app's People

Contributors

mayank534 avatar

Watchers

 avatar

Forkers

koushiksoma66

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.