This is a 'toy' or prototype blockchain. The blockchain code is based on the book Learn Blockchain Programming with JavaScript.
The peer-to-peer network part of the blockchain is based on IPFS (aka libp2p). This code repository was started as a fork of the ipfs-service-provider-leveldb boilerplate.
- node ^20.16.0
- npm ^10.8.1
- Docker ^24.0.7
- Docker Compose ^1.27.4
The docker directory contains a Dockerfile for building a production deployment.
docker-compose pull
docker-compose up -d
- You can bring the containers down with
docker-compose down
- You can bring the containers back up with
docker-compose up -d
.
A development environment will allow you modify the code on-the-fly and contribute to the code base of this repository. Ubuntu v20 is the recommended OS for creating a dev environment. Other operating systems may cause issues.
git clone https://github.com/christroutner/ipfs-service-provider-leveldb
cd ipfs-service-provider-leveldb
npm install
npm start
This app is intended to be started via a bash shell script. See the environment variables used to configure this app in the config/env/common.js file.
The file layout of this repository follows the file layout of Clean Architecture. Understaning the principles laid out this article will help developers navigate the code base.
npm start
Start server on live modenpm run docs
Generate API documentationnpm test
Run mocha tests
API documentation is written inline and generated by apidoc. Docs can be generated with this command:
npm run docs
Visit http://localhost:5020/
to view docs
There is additional developer documentation in the dev-docs directory.