Skip to content

lakxraju/bigchaindb-examples

 
 

Repository files navigation

BigchainDB Examples

This repo contains examples and tutorials for BigchainDB.

Warning: These examples are for demonstration purposes and should not be used as-is for production

See the documentation:

Examples:

Dependencies

The examples can be run via Docker (recommended), but, if you'd like, you can run them locally with the following system dependencies:

Example: "On the Record"

"On the Record" is a simple logging app, wrapped as a messaging board.

You should see the app running on http://localhost:3000/ontherecord/, or if running docker, http://docker-machine:32800/ontherecord/ (replace docker-machine as necessary with localhost or your docker-machine ip).

Use cases

  • Immutable logging of data
  • Notarization of data, text, emails

Functionality

Create assets

  • with arbitrary payload
  • and an unlimited amount

Retrieve assets

  • that you currently own (like UTXO's)
  • by searching the asset data/payload
  • state indicator (in backlog vs. on bigchain)

What this app doesn't provide

  • Proper user and key management
  • Transfer of assets

Example: Share Trader

Share Trader is a simple share allocation and trade app. Each square represents an asset that can be traded amongst accounts.

You should see the app running on http://localhost:3000/sharetrader/, or if running on docker, http://docker-machine:32800/sharetrader/ (replace docker-machine as necessary with localhost or your docker-machine ip).

Use cases

  • Reservation of tickets, seats in a concert/transport, ...
  • Trade of limited issued assets

Functionality

Create assets

  • assets are created following a structured payload
  • the amount is limited

Transfer assets

  • easy transfer of assets between accounts by:
  • clicking on an account first. This will give the assets for that account
  • clicking on an asset of that account. Transfer actions will appear on the right side.

Retrieve assets

  • that you currently own (like UTXO's)
  • all assets on bigchain
  • state indicator (blinks if asset has various owners)

What this app doesn't provide

  • Proper user and key management
  • Proper signing of transfers
  • Proper search by payload

Acknowledgements:

Special thanks to the BigchainDB/ascribe.io team for their insights and code contributions:

@r-marques, @vrde, @ttmc, @rhsimplex, @SohKai, @sbellem, @TimDaub

About

Examples and tutorials for BigchainDB use cases.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 63.4%
  • Python 19.2%
  • CSS 16.3%
  • HTML 1.1%