Supply-Chain
所属分类:企业管理
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-01-24 02:11:36
上 传 者:
sh-1993
说明: 以太坊去中心化应用程序,在项目通过供应链时跟踪其真实性。
(An Ethereum decentralized application that tracks an item s authenticity as it goes through the supply chain.)
文件列表:
UML/ (0, 2020-04-19)
UML/UDACITYPROJECT3Activity.pdf (7473, 2020-04-19)
UML/UDACITYPROJECT3Class.pdf (28971, 2020-04-19)
UML/UDACITYPROJECT3Sequence (2).pdf (10200, 2020-04-19)
UML/UDACITYPROJECT3State.pdf (14812, 2020-04-19)
bs-config.json (83, 2020-04-19)
contracts/ (0, 2020-04-19)
contracts/Migrations.sol (508, 2020-04-19)
contracts/coffeeaccesscontrol/ (0, 2020-04-19)
contracts/coffeeaccesscontrol/ConsumerRole.sol (1704, 2020-04-19)
contracts/coffeeaccesscontrol/DistributorRole.sol (1796, 2020-04-19)
contracts/coffeeaccesscontrol/FarmerRole.sol (1641, 2020-04-19)
contracts/coffeeaccesscontrol/RetailerRole.sol (1703, 2020-04-19)
contracts/coffeeaccesscontrol/Roles.sol (914, 2020-04-19)
contracts/coffeebase/ (0, 2020-04-19)
contracts/coffeebase/SupplyChain.sol (12479, 2020-04-19)
contracts/coffeecore/ (0, 2020-04-19)
contracts/coffeecore/Ownable.sol (1429, 2020-04-19)
index.html (4520, 2020-04-19)
migrations/ (0, 2020-04-19)
migrations/1_initial_migration.js (129, 2020-04-19)
migrations/2_deploy_contracts.js (546, 2020-04-19)
package-lock.json (214538, 2020-04-19)
package.json (503, 2020-04-19)
src/ (0, 2020-04-19)
src/js/ (0, 2020-04-19)
src/js/app.js (11517, 2020-04-19)
src/js/truffle-contract.js (258344, 2020-04-19)
style.css (968, 2020-04-19)
test/ (0, 2020-04-19)
test/TestSupplychain.js (21728, 2020-04-19)
truffle-config.js (4308, 2020-04-19)
## Contract Address
```
0x23f7b72a601eEAC3916B7848DC22a68A6b5fDF3C
```
## transaction hash
```
0x890de04fa997260d904a5507635c5145196eb199f0c2cc7edc8815e75f965f83
```
## No libary used
## IPFS was not used
## Truffle version
v5.1.20 (core: 5.1.20)
## Node version
v10.16.0
## UML Diagrams
UML diagrams are in UML folder
# USAGE
This repository containts an Ethereum DApp that demonstrates a Supply Chain flow between a Seller and Buyer. The user story is similar to any commonly used supply chain process. A Seller can add items to the inventory system stored in the blockchain. A Buyer can purchase such items from the inventory system. Additionally a Seller can mark an item as Shipped, and similarly a Buyer can mark an item as Received.
## Prerequisites
-Ganache
-Truffle
-Metamask
### Clone the repository
```
https://github.com/Tomesyy/Supply-Chain.git
```
- run
```
npm install
```
- launch Ganache
- run
```
truffle compile
truffle migrate
truffle test
```
All 10 tests should pass
- launch the DApp
```
npm run dev
```
- open DApp on browser
- Connect metamask to Ganache
近期下载者:
相关文件:
收藏者: