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.
- Download the files in the folder called Final
- Open the folder in Vs code
- Open the .sol file
- Run Ganache and choose quickstart
- Back in VScode open terminal,check the node version using node -v
- Run the following commands
- npm install
- truffle compile
- truffle migrate
- In the browser, open index.html. Different portals can be accessed from index.html
- We plan to integrate login mechanism in the project so that only the respective stakeholder can access their portals
- The browser settings need to be changed as follws in order to access the files, since we are using Web3
-
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.
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
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
- Kritika Arora
- Rishab Madaan
- Garima Aggarwal
- Dinesh Pabbi
- Kunal Verma