mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-25 03:03:16 +01:00
43 lines
1005 B
Markdown
43 lines
1005 B
Markdown
# Setup
|
|
|
|
Start by installing the official BigchainDB [JavaScript driver](https://github.com/bigchaindb/js-bigchaindb-driver), [Python driver](https://github.com/bigchaindb/bigchaindb-driver) or [Java driver](https://github.com/bigchaindb/java-bigchaindb-driver):
|
|
|
|
```bash
|
|
# JavaScript driver
|
|
npm i bigchaindb-driver
|
|
```
|
|
|
|
```bash
|
|
# Python driver
|
|
pip install -U bigchaindb-driver
|
|
```
|
|
|
|
```xml
|
|
<!-- 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.
|
|
|
|
```js
|
|
const BigchainDB = require('bigchaindb-driver')
|
|
|
|
const API_PATH = '{{ site.bigchaindb_api_url }}/api/v1/'
|
|
const conn = new BigchainDB.Connection(API_PATH)
|
|
```
|
|
|
|
```python
|
|
from bigchaindb_driver import BigchainDB
|
|
|
|
conn = BigchainDB('{{ site.bigchaindb_api_url }}')
|
|
```
|
|
|
|
```java
|
|
BigchainDbConfigBuilder
|
|
.baseUrl("{{ site.bigchaindb_api_url }}/").setup();
|
|
```
|