Skip to content

Dapp designed to provide a platform for sellers to sell their products securely. The application allows sellers to view the chain of ownership of their products and monitor any changes in price. Additionally, the Dapp enables sellers to make safe purchases, ensuring a smooth and trustworthy transaction process.

License

Notifications You must be signed in to change notification settings

MattiaLimone/HubGrub

Repository files navigation

Contributors Forks Stargazers Issues GNU General Public License v2.0

HubGrub

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

This is a decentralized application (Dapp) that provides a platform for sellers to sell their products in a secure and transparent manner. The Dapp is built on the Ethereum blockchain using the Solidity programming language and Ganache, a local blockchain network for testing purposes. The front-end of the application is built using Node.js.

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.

Built With

Ethereum Solidity NodeJS JavaScript HTML5 CSS3

Getting started

Prerequisites

What you will need:

  • node.js >= 19.8.1
  • ganache >= 2.7.0
  • metamask

Installation

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

Usage

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

Contributing

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!

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mattia Limone [Linkedin profile]

Alessia Natake [Linkedin Profile]

(back to top)

About

Dapp designed to provide a platform for sellers to sell their products securely. The application allows sellers to view the chain of ownership of their products and monitor any changes in price. Additionally, the Dapp enables sellers to make safe purchases, ensuring a smooth and trustworthy transaction process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published