Giter VIP home page Giter VIP logo

web3-bnb's Introduction

On-chain BNB Property Ownership and Rental

Header

Features

A solidity smart contract + dapp that combines the core features of renting a single property (e.g. an AirBnb rental) with an ERC-20 dividend paying token for multiple owners of the property:

  • a group of owners/investors (shareholders) can buy a property together
  • guests can book and pay rent for the property
  • earnings (rent) can be withdrawn by a shareholder proportionally to their number of shares
  • the dapp supports use cases for both guests and owners

Run the project locally

  1. Clone the project locally:

    git clone https://github.com/mattmasteller/web3-bnb.git
  2. Install dependencies:

    yarn install
  3. Start the local Hardhat node:

    yarn hardhat node
  4. With the Hardhat node running, deploy the smart contract to the local network in a separate terminal window:

    yarn hardhat run ethereum/scripts/deploy.js --network localhost
  5. Copy the contract address from the terminal and assign it to the REACT_APP_CONTRACT_ADDRESS environment variable in the .env file.

  6. Configure .env file inside the root directory:

    NETWORK_URL=https://eth-rinkeby.alchemyapi.io/v2/your-alchemy-key
    PRIVATE_KEY=your-private-key-used-to-deploy-the-contract
    REACT_APP_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
    
  7. Launch the frontend client app:

    yarn start

Deployed website

https://web3-bnb.netlify.app/

Deployed contract

https://rinkeby.etherscan.io/address/0xa3Cbdaa189D193d905662bbb999446854C1a5480

Technology

  • hardhat
  • solidity
  • openzeppelin
  • react
  • ethers
  • chakra-ui

web3-bnb's People

Contributors

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