Giter Site home page Giter Site logo

klickers / udacity_project6_booksupplychain Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.8 MB

Project 6 from the Udacity Blockchain Developer Program. (Supply Chain)

Shell 0.04% HTML 1.76% JavaScript 97.88% CSS 0.33%
udacity udacity-nanodegree udacity-blockchain-nanodegree

udacity_project6_booksupplychain's Introduction

Information

Versions

Truffle v5.1.20 (core: 5.1.20)
Solidity v0.5.16 (solc-js)
Node v10.15.0
Web3.js v1.2.1

Contract Address

0xdeef19c0c95ecd9466a06fbe18189c9450ae9095887acb0b5b4d2eb03946b3bf on the Ropsten test network.

UML

Activity Diagram

activity diagram

Sequence Diagram

sequence diagram

State Diagram

state diagram

Data Model

data model

Libraries

The roles library was used to manage actors on the supply chain.

Installing

Download and extract this repository. Once in the root folder, run:

cd project-6
npm install

In a separate terminal window, compile smart contracts:

truffle compile

This will create the smart contract artifacts in folder build\contracts.

Migrate smart contracts to the locally running blockchain:

truffle migrate

Test smart contracts:

truffle test

All 11 tests should pass.

In a separate terminal window, launch the DApp:

npm run dev

Built With

  • Ethereum - Ethereum is a decentralized platform that runs smart contracts
  • Truffle Framework - Truffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier.

Acknowledgments

  • Solidity
  • Ganache-cli
  • Truffle
  • IPFS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.