1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 17:50:07 +01:00
site/_src/_guides/_setup.md

606 B

Setup

Start by installing the official BigchainDB JavaScript driver:

npm i bigchaindb-driver

Then, include that as a module and connect to any BigchainDB node. You can create your own app_id and app_key on BigchainDB Testnet.

const BigchainDB = require('bigchaindb-driver')

const API_PATH = 'https://test.bigchaindb.com/api/v1/'
const conn = new BigchainDB.Connection(API_PATH, {
    app_id: 'Get one from testnet.bigchaindb.com',
    app_key: 'Get one from testnet.bigchaindb.com'
})