Coder Social home page Coder Social logo

endlessflier / solidity-react-web3-dapp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 474 KB

Full Stack project using React.js, web3.js, and Solidity

Solidity 3.10% Shell 0.52% HTML 18.77% CSS 10.14% JavaScript 67.46%
react reactjs ethereum dapp smart-contracts solidity web3js infura-api hardhat ethersjs

solidity-react-web3-dapp's Introduction

Basic Sample React DApp Project

This project demonstrates a basic dApp development with React, Ethers.js, Solidity, and Hardhat. I wanted to show you how to build full stack Ethereum dapps using the most up to date resources, libraries, and tooling.

How to install and run

  1. Clone the repo
git clone https://github.com/SmartCoding51/hardhat-react-dapp.git
  1. Set up keys.json file and install dependencies
cd hardhat-react-dapp
cp keys.example.json keys.json
npm install
  1. Set up .env file in react frontend directory, and install dependencies
cp env.example .env
npm install
  1. Run the app npm start

How to start local test network and deploy contract

  1. Start the local test node
cd hardhat-react-dapp
npx hardhat node
  1. Deploy the contract
npx hardhat run scripts/deploy.js --network localhost
  1. Update src/App.js with the value of your contract address
  2. Run the app
cd frontend
npm start

solidity-react-web3-dapp's People

Contributors

endlessflier avatar

Watchers

 avatar

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.