Skip to content
Code for a blog post about using MongoDB directly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
car_example_data/bigchain Add car_example_data/ (from mongodump) Jun 6, 2018
requirements.txt Change datetimes to integer POSIX time stamps Jun 6, 2018


This repository contains code for a blog post about using MongoDB directly.

Using the Code

First, run a local BigchainDB node using our handy make commands

Assuming you're using Python 3.6...

Install some Python packages:

pip install -r requirements.txt

Then generate some fake data about some custom cars and the ownership history of each one, and write all that data to the local BigchainDB node:


Exploring the Archived Data

The data generated for the blog post was saved using mongodump --db bigchain --out car_example_data. The car_example_data/ directory was then uploaded to this repository so you can explore it. To do that, first start a new MongoDB instance and then run mongorestore car_example_data/

You can’t perform that action at this time.