1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-28 23:06:20 +01:00
site/_src/_guide/_setup.md

1005 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 = '{{ site.bigchaindb_api_url }}/api/v1/'
const conn = new BigchainDB.Connection(API_PATH)
from bigchaindb_driver import BigchainDB

conn = BigchainDB('{{ site.bigchaindb_api_url }}')
BigchainDbConfigBuilder
	.baseUrl("{{ site.bigchaindb_api_url }}/").setup();