smartphone-supply-chain

1. blockchain

fabric sdk go interface, used to invoke chaincode in the chain.

  • setup interface
  • invoke interface
  • update interface
  • delete interface

2. chaincode

chaincode installed in baas, used to change ledger of the chain.

  • add supplier info
  • add assembly info
  • add logistics info
  • add sales info
  • add subcomponent info

3. profile

connection-profile.yaml for users in baas, used to identify user‘s privileges in the chain.

4. web

go web application

5. vendor

go dependencyies

6. main.go

  • Init Data
  • Start Web Application