Skip to content

dineshpabbi10/SupplyChain-Blockchain-

Repository files navigation

Supply Chain Using Ethereum Blockchain

Table of Contents:

Introduction:

This is a course project made as a part of EECE 571G [ Software Engineering in Blockchain ] course at UBC.

The main stakeholders in the project are:

Manufacturing Company
Admin Company
Distributor
Retailer
Customer

The main pain point under consideration is that the customer can see the components and their manufacturer in order to circumvent fraud. Our project also tackles the problem of non-payment or ill timed payments to seller through our smart contracts. . The project will also focus on ownership transfer and profit distribution among the vendor , retailer and distributer.


Tools used:


How to run

  1. Download the files in the folder called Final
  2. Open the folder in Vs code
  3. Open the .sol file
  4. Run Ganache and choose quickstart
  5. Back in VScode open terminal,check the node version using node -v
  6. Run the following commands
    1. npm install
    2. truffle compile
    3. truffle migrate
  7. In the browser, open index.html. Different portals can be accessed from index.html

Notes

  1. We plan to integrate login mechanism in the project so that only the respective stakeholder can access their portals
  2. The browser settings need to be changed as follws in order to access the files, since we are using Web3
    • Firefox
    • For Firefox: If you run in Firefox, it is easy for you to finish the configuration.
      1. Open you Firefox.
      2. In your address bar, go to about:config
      3. Accept the Risk and Continue
      4. You will see a search bar, search the keyword Origin
      5. Look for security.fileuri.strict_origin_policy
      6. It default value is true, we need to change it to false. Double clicking that entry should work for our purpose.
      7. Close and relaunch your Firefox.
      8. Done.

    • Chrome
    • MacOS

      Run your Google Chrome with the following Command
      [Refer mine for an example]:

      /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="~/chrome" --disable-web-security

      Usually, Google Chrome is found in /Applications folder. Even though it is named as “Google Chrome.app”, but it is a directory (i.e., folder). The executable file is in /Applications/Google\ Chrome.app/Contents/MacOS

      The backslash is escaping that space. You need to keep the same options --user-data-dir="~/chrome" --disable-web-security

      Linux

      google-chrome --user-data-dir="~/chrome" --disable-web-security

      Usually, google-chrome is a resolvable command in your Ubuntu.

      If not, you need to find where is your google-chrome runnable file. From command line, go to the folder where google-chrome locates and run this command instead: ./google-chrome --user-data-dir="~/chrome" --disable-web-security

      Windows

      First, you need to know where is your Google Chrome executable file (i.e., chrome.exe). From your task bar, type Google Chrome and expand the preview options shown on the right-hand-side. Then, select the Open File Location. It usually locates the shortcut of your Google Chrome runnable file. Right click the shortcut file and show its property will reveal where is your Google Chrome executable file (i.e., chrome.exe) location. From window DoS command line, go to the folder where Google Chrome executable file locates, then run Chrome.exe --user-data-dir="C:\chrome" --disable-web-security

Team Members

  • Kritika Arora
  • Rishab Madaan
  • Garima Aggarwal
  • Dinesh Pabbi
  • Kunal Verma

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5