Giter Site home page Giter Site logo

decentralised_portfolio's Introduction

Dapp Boilerplate

This is a Dapp boilerplate built using React and Hardhat. It allows you to generate contract state when the connect wallet button is clicked. It also uses the Rainbow kit for the connect wallet component.

Getting Started

To get started with the Dapp boilerplate, follow these steps:

  1. Install Vite by running the following command:
    npm create vite@latest react-app -- --template react
    
  2. Navigate to the react-app directory and install dependencies:
    cd react-app
    npm install
    
  3. Install Hardhat:
    npm install --save-dev hardhat
    npx hardhat
    
  4. Install dotenv:
    npm i dotenv
    
  5. Create a .env file with the following contents:
    SEPOLIA_PRIVATE_KEY = ""
    ALCHEMY_SEPOLIA_API_KEY =""
    OWNER_ADDRESS = ""
    CONTRACT_ADDRESS = ""
    ETHERSCAN_API_KEY = ""
    
    Replace the empty strings with the relevant values.
  6. Deploy the contract:
    npx hardhat run --network sepolia scripts/deploy.js
    
  7. Verify the contract:
    npx hardhat verify --network sepolia <address>
    
    Replace <address> with the contract address.
  8. Install Rainbow kit for the connect wallet component:
    npm init @rainbow-me/rainbowkit@latest
    
  9. Run the server:
    npm run dev
    

Contributing

If you have any suggestions or find any bugs, feel free to open an issue or submit a pull request.

decentralised_portfolio's People

Contributors

roudra323 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.