-
Notifications
You must be signed in to change notification settings - Fork 0
/
HOW TO RUN.txt
33 lines (31 loc) · 2.27 KB
/
HOW TO RUN.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This document will help you understand how you can test this decentralized application on your own computer.
But please not, I made this project open source just so that other people can add something upon this existing setup or for educational purposes.
This project is not supposed to be copied and used for your semester projects or commercial purposes.
INSTRUCTIONS-
1) Download and install Ganache (https://www.trufflesuite.com/ganache)
2) Download and install Xampserver on windows (https://www.apachefriends.org/download.html) or MAMP on MacOS X (https://www.mamp.info/en/windows/)
3) Download and install Google Chrome (in case you don't have it already). Go to Chrome store and download Metamask (https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn)
4) Create a metamask account.
5) Run Ganache.
6) In metamask, select Networks > Custom RPC
7) Give any name to network.
8) Copy RPC Server URL from Ganache (It should probably be HTTP://127.0.0.1:7545 but please check)
9) Go to Metamask > Accounts > Import Account.
10) Open Ganache, go to Accounts tab, click on the key icon on the right side for any account and copy the private key.
11) Paste this key in Metamask import account section.
12) Copy the smartcontract.sol from this repo and paste it in https://remix.ethereum.org/ code section.
13) Save it, go to compile tab and compile the code.
14) Go to deploy tab, select Environment as 'Injected Web3'
15) Click deploy.
16) Copy the contract address and paste it in app.js file.
17) Copy the contract ABI from compile tab and paste it in app.js file.
18) Start MAMP or Xampserver (Whichever you installed)
19) Paste the project folder inside htdocs folder of the root directory.
20) Go to localhost or localhost:8888/ (This URL may change depending on the software you installed and your OS)
21) Open phpmyadmin, go to SQL and paste the sql queries provided inside the sql folder.
22) Execute the queries.
23) Open URL http://localhost:8888/SupplyChainDAPP_FULL or http://localhost/SupplyChainDAPP_FULL (This URL may change depending on the software you installed, your OS, and project name)
24) It should be running as expected.
For any queries, feel free to reach out.
Linkedin: https://www.linkedin.com/in/iamanubhavdutta/
Instagram: https://www.instagram.com/iamanubhavdutta/