Giter Site home page Giter Site logo

shivashanmuganathan / rental-marketplace-frontend Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 5.0 3.27 MB

Uncollateralized NFT Rental Marketplace. Users can list their NFT for rent by specifying the rental details. Renters can rent the NFT by paying only the rental price. The Rented NFT can be claimed by the NFT owner, once the rental period ends

Home Page: https://nft-rental-marketplace.vercel.app/

JavaScript 94.70% CSS 5.30%
nft nft-marketplace rental dapp solidity nextjs ethereum

rental-marketplace-frontend's Introduction

💎NFT Rental Marketplace 💸Collateral Free Renting🆓

Project Description 📝

💎Fullstack NFT Rental Marketplace Dapp ✨Collateral Free Renting✨

  • NFT Owners can rent their NFT by specifying the name, description, rental duration, and rental price.
  • Anyone can rent the NFT from the Rental Marketplace by paying the rental price.
  • The Renter will not be able to transfer the rented NFT to anyone.
  • After the end of the rental duration, either the renter, owner or anyone can call finishRenting function to transfer the NFT from Renter to the NFT Owner. capture

rental_poster1

About Frontend 🎨🖌

Project Is Deployed On Vercel

This project consists of five pages

  • Home - Displays all NFTs listed for rent in the rental marketplace
  • Create NFTs - Users can create their own NFTs by filling all the details in this page
  • My NFTs - Users can view the NFTs they have created
  • Rented NFTs - Users can view the NFTs they have rented
  • Claimable NFTs - Users can view all NFTs that is past the rental duration
Working Explained In Detail

Working Explained In Detail

  • Anyone who has created a ERC721 contract with additional functions similar to NFT.sol can list their NFTs for Rent in the Marketplace.
  • When an owner lists a NFT for rent in the Marketplace, the ownership of the item will be transferred from the owner to the marketplace.
  • Anyone can rent the NFTs listed in the marketplace by paying rent.
  • When a user rents a NFT, the rental price will be transferred from the buyer to the seller and the NFT will be transferred from the marketplace to the renter.
  • The Renter will not be able to transfer the NFT to anyone, because the NFT.sol contract prevents the token transfer while it is on rent.
  • Finish Renting function will enable anyone to end the renting process, and return the NFT to the NFT Owner.

The marketplace owner will be able to set a listing fee. This fee will be paid by the NFT owner when listing NFT in the renal marketplace, and transferred to the contract owner, enabling the owner of the marketplace to earn recurring revenue from any listing transacted in the marketplace.

rental_poster

Directory Structure 📂

  • pages/{componenet-name.js} ⏩ Pages folder contains all components of the dapp.
  • contracts ⏩ NFT Rental Marketplace and NFT Smart contracts that are deployed in the Polygon Mumbai Test Network.
  • test ⏩ Tests for Smart Contracts.

How To Run This Project Locally 🏃🏾‍♂️💨

Clone This Repo

git clone https://github.com/ShivaShanmuganathan/rental-marketplace-frontend
cd rental-marketplace-frontend

Install Dependencies

npm install

Run The Frontend

npm run dev

Working Explained In Detail 📃

  • Anyone who has created a ERC721 contract with additional functions similar to NFT.sol can list their NFTs for Rent in the Marketplace.
  • When an owner lists a NFT for rent in the Marketplace, the ownership of the item will be transferred from the owner to the marketplace.
  • Anyone can rent the NFTs listed in the marketplace by paying rent.
  • When a user rents a NFT, the rental price will be transferred from the buyer to the seller and the NFT will be transferred from the marketplace to the renter.
  • The Renter will not be able to transfer the NFT to anyone, because the NFT.sol contract prevents the token transfer while it is on rent.
  • Finish Renting function will enable anyone to end the renting process, and return the NFT to the NFT Owner.

The marketplace owner will be able to set a listing fee. This fee will be paid by the NFT owner when listing NFT in the renal marketplace, and transferred to the contract owner, enabling the owner of the marketplace to earn recurring revenue from any listing transacted in the marketplace.

Test Coverage Report 🛸

test-coverage-report

Gas Report ⛽

gas-report-rental

Demo GIF 🎥

NFT-Rental-Marketplace-28-March-2022

rental-marketplace-frontend's People

Contributors

shivashanmuganathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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