Skip to content

suryakantpandey/nftsite

Repository files navigation

                                          Project Summary:
                                          
Created NFT based web app using smart contracts on blockchain
using ERC-721 protocol for E-Commerce sites, where a Seller can
create an NFT within 1 minute and can add warranty details, ownership. 

Customers can use the digital NFT to verify the authenticity of
their product and prove their ownership and retailer should also
be able to tie the digital NFT to its warranty program. 

Tech stack used:
Frontend-> Next Js
Backend Used->Hardhat,Node
DataBase->MongoDB
Others->Solidity,Javascript 

**This project demonstrates a Hardhat use case. 
It has sample contract, a test for that contract, and a script that deploys that contract.**

                                      Procedure For Running The Project:

Step:1-> Open the whole repository in Vscode or any editor (*Note: Make sure you have nodejs installed)
Step:2-> Open 4 terminals separately
Step:3-> In 1st terminal , run these commands
         npm install
         npm audit fix
         npx hardhat node
Step:4-> In 2nd terminal , run these commands
         npx hardhat run scripts/deploy.js --network localhost
Step:5-> In 3rd terminal , run these commands
         cd backend
         node app
Step:6-> In 4th terminal , run these commands
         npm run dev
                                  **Detail Description of the project:**

##Seller will list the product on e-commerce site and along with an NFT will be created at NFT market place for products with product details, name, description, ownership, warranty details, photo etc.

NFT_Listing_Done

##A NFT will be created for the product (as its digital version)(shown under dashboard) containing all detail as a smart contract on blockchain.

Product_Details_added

Customer_Can_See_Details

##A Dynamic QR code will be generated for each product and given to seller and seller will put this QR code (in the form of plastic chips) on product and boxes.

QR_Code_Generated

##At the time of receiving the product , there is inbuilt scanner in the e-commerce app which will scan the QR code on the product box and perform decryption algorithm and checks whether its product id matches with product id of the product ordered or not internally , In this way product security and authenticity will be maintained.

QR_Code_Scanning_At_Customer_side

Product_authenticated

##If product will be returned by customer under return period, seller will perform some quality checks on the product and on the basis of that either he will delist product (NFT will be decayed) or he will refurbish it and list it again (Add refurbishment details to existing NFT in the form of smart contracts)

##If return period over, then e-commerce platform will automatically update the ownership details to existing NFT via adding smart contract.

NFT_Ownership_transfer

##Warranty Checking: Similarly, after the sale of product, if further customer got any repair work in product, it will go to service center and there will verify the warranty of the product again using the same method of decryption and will check the warranty.

##Decaying NFT: After the warranty of the product is over, its Data from the database will be deleted and this NFT will be called decayed.

Decay_NFT_Feature

                                                 Future Scope(Improvement Areas):
                                                        
##The whole NFT marketplace should be integrated with e-commerce main site.

##Two QR code scanner needs to be implemented at e-commerce site, 
one for checking authenticity of products and second for verifying warranty of products.

##Two automated function also needs to be implemented at e-commerce site , 
one for Ownership transfer when customer confirms to take the product and second to decay the NFT after its warranty is over.

##We can also use this system to do the business related to second hand/used 
products as their ownership details and all other details will always be visible to everyone.

Project Video Here::

Demo_Video.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published