1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 01:36:56 +01:00
js-bigchaindb-driver/examples/basic-usage-boilerplate
2018-01-20 22:19:23 +01:00
..
src Finished examples - experimenting with websocket 2018-01-20 22:19:23 +01:00
.babelrc First example 2018-01-20 14:25:15 +01:00
.gitignore First example 2018-01-20 14:25:15 +01:00
package.json Finished examples - experimenting with websocket 2018-01-20 22:19:23 +01:00
README.md Finished examples - experimenting with websocket 2018-01-20 22:19:23 +01:00

Usage

npm install -> Installs all required dependencies to run these examples.

Different Examples

Basic Usage: Create asset and transfer it to new owner. -> npm start

Async/Await Basic Usage: Basic usage example rewritten with async/await. -> npm run basic-async

Querying for Assets: Query for assetdata or metadata. -> npm run query-assets

Seed/Keypair Functionality: Create keypair with bip39 library. -> npm run seed-func

Notes

dotenv is listed as a dependencies in package.json. If you want to use this, add a .env file to the root of this project (same level as this README.md file) and replace the variables to fit your system.

BIGCHAINDB_API_PATH=http://localhost:9984/api/v1/
BIGCHAINDB_APP_ID=<your-app-id>
BIGCHAINDB_APP_KEY=<your-app-key>