mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-22 09:46:57 +01:00
996 B
996 B
Setup
Start by installing the official BigchainDB JavaScript driver, Python driver or Java driver:
# JavaScript driver
npm i bigchaindb-driver
# Python driver
pip install -U bigchaindb-driver
<!-- Java driver, in pom.xml for Maven users -->
<dependency>
<groupId>com.bigchaindb</groupId>
<artifactId>bigchaindb-driver</artifactId>
<version>1.0</version>
</dependency>
Then, include that as a module and connect to any BigchainDB node.
const BigchainDB = require('bigchaindb-driver')
const API_PATH = 'https://test1.testnet2.com/api/v1/'
const conn = new BigchainDB.Connection(API_PATH)
from bigchaindb_driver import BigchainDB
conn = BigchainDB('https://test1.testnet2.com')
BigchainDbConfigBuilder
.baseUrl("https://test1.testnet2.com/").setup();