基于区块链的毕业设计Supply chain & data auditing – 供应链和数据审核

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Supply chain & data auditing – 供应链和数据审核 是一篇很好的国外资料

Supply chain & data auditing

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.

The DApp User Interface when running should look like…

Supply chain & data auditing - 供应链和数据审核

Supply chain & data auditing - 供应链和数据审核

Supply chain & data auditing - 供应链和数据审核

Supply chain & data auditing - 供应链和数据审核

Project write-up – UML

Acivity Diagram

Supply chain & data auditing - 供应链和数据审核

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Please make sure you’ve already installed ganache-cli, Truffle and enabled MetaMask extension in your browser.

Give examples (to be clarified) 

Installing

A step by step series of examples that tell you have to get a development env running

Clone this repository:

git clone https://github.com/udacity/nd1309/tree/master/course-5/project-6 

Change directory to project-6 folder and install all requisite npm packages (as listed in package.json):

cd project-6 npm install 

Launch Ganache:

ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster" 

Your terminal should look something like this:

Supply chain & data auditing - 供应链和数据审核

In a separate terminal window, Compile smart contracts:

truffle compile 

Your terminal should look something like this:

Supply chain & data auditing - 供应链和数据审核

This will create the smart contract artifacts in folder buildcontracts.

Migrate smart contracts to the locally running blockchain, ganache-cli:

truffle migrate 

Your terminal should look something like this:

Supply chain & data auditing - 供应链和数据审核

Test smart contracts:

truffle test 

All 10 tests should pass.

Supply chain & data auditing - 供应链和数据审核

In a separate terminal window, launch the DApp:

npm run dev 

Built With

  • Ethereum – Ethereum is a decentralized platform that runs smart contracts
  • IPFS – IPFS is the Distributed Web | A peer-to-peer hypermedia protocol to make the web faster, safer, and more open.
  • Truffle Framework – Truffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier.

Authors

See also the list of contributors who participated in this project.

Acknowledgments

  • Solidity
  • Ganache-cli
  • Truffle
  • IPFS

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


供应链和数据审计

这个存储库包含一个以太坊ethDApp,它演示了卖方和买方之间的供应链流。用户故事类似于任何常用的供应链流程。卖家可以将商品添加到区块链blockchain中存储的库存系统中。买家可以从库存系统购买此类物品。另外,卖家可以将商品标记为已发货,同样,买家也可以将商品标记为已收到。

运行时的DApp用户界面应该像。。。

Supply chain & data auditing - 供应链和数据审核

<Supply chain &amp; data auditing>

<Supply chain &amp; data auditing>

Supply chain & data auditing - 供应链和数据审核

项目总结-UML

活动图

Supply chain & data auditing - 供应链和数据审核

入门

<Supply chain &amp; data auditing>

先决条件

Please make sure you’ve already installed ganache-cli, Truffle and enabled MetaMask extension in your browser.

Give examples (to be clarified) 

安装

A step by step series of examples that tell you have to get a development env running

<Supply chain &amp; data auditing>

git clone https://github.com/udacity/nd1309/tree/master/course-5/project-6 

这些说明将为您提供一份项目副本,并在本地计算机上运行,以供开发和测试之用。有关如何在活动系统上部署项目的说明,请参见部署。

cd project-6 npm install 

请确保您已经在浏览器中安装了ganache cli、Truffle和启用了MetaMask扩展。

ganache-cli -m "spirit supply whale amount human item harsh scare congress discover talent hamster" 

一系列循序渐进的示例告诉您必须让开发环境运行

克隆此存储库:

将目录更改为project-6文件夹并安装所有必需的npm包(如中所列包.json):

truffle compile 

启动Ganache:

您的终端应该看起来像这样:

Supply chain & data auditing - 供应链和数据审核

在单独的终端窗口中,编译智能合约:

truffle migrate 

您的终端应该如下所示:

Supply chain & data auditing - 供应链和数据审核

这将在文件夹buildcontracts中创建智能合约工件。

truffle test 

将智能合约迁移到本地运行的区块链blockchain中,ganache cli:

您的终端应该如下所示:

<Supply chain &amp; data auditing>

npm run dev 

作者

  • IPFS-IPFS是分布式网络|一种点对点超媒体协议,使网络更快、更安全、更开放。Truffle框架-Truffle是以太坊eth最受欢迎的开发框架,它的使命是让你的生活更轻松。
  • 稠度
  • Ganache cli

确认

测试智能合约:

基本cookies

  • 块菌
  • IPFS
  • Truffle
  • IPFS

所有10个测试都应该通过。

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/18440.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Supply chain & data auditing – 供应链和数据审核

提供最优质的资源集合

立即查看 了解详情