Table of Contents
The key features of this Dapp include:
Secure transactions between buyers and sellers using smart contracts. Tracking of product ownership and changes in price through the blockchain. Seamless and trustworthy transaction process for sellers and buyers.
What you will need:
- node.js >= 19.8.1
- ganache >= 2.7.0
- metamask
To install and run the Dapp on your local machine, follow these steps:
Clone this repository to your local machine using the command:
git clone https://github.com/MattiaLimone/HubGrub.git
Install the necessary dependencies by running the command:
npm install
Start Ganache by running the command:
ganache-cli
Compile and deploy the smart contracts to the local blockchain by running the command:
truffle migrate
Start the Dapp by running the command:
npm start
Open your web browser and navigate to the following URL: http://localhost:3000
Once the Dapp is running, sellers can create a new product by providing the required information (name, image, price). Once the product is created, it will be added to the blockchain and can be viewed by buyers. Buyers can purchase the product by sending the required amount of Ether to the seller's wallet address. The transaction will be recorded on the blockchain, and the ownership of the product will be transferred to the buyer. Owners can decide to change product price and sale status. It's also possible to see all the events regarding a specific product
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Distributed under the MIT License. See LICENSE
for more information.
Mattia Limone [Linkedin profile]
Alessia Natake [Linkedin Profile]