christroutner / ipfs-service-provider-leveldb

A fork of ipfs-service-provider using LevelDB instead of MongoDB

Repository from Github https://github.comchristroutner/ipfs-service-provider-leveldbRepository from Github https://github.comchristroutner/ipfs-service-provider-leveldb

ipfs-service-provider-leveldb

js-standard-style semantic-release

Overview

This is a 'boilerplate' repository. It's intended to be forked to start new projects. This is a fork of the ipfs-service-provider boilerplate. The main change is to swap out MongoDB with LevelDB.

MongoDB is an external service dependency, whereas LevelDB is just npm packages and data on disk. Using LevelDB makes it much easier to prototype new ideas. Prototypes for new ideas can be built that require a database, even before the final database has been decided. That's the main advantage to using LevelDB for the boilerplate.

Requirements

  • node ^20.16.0
  • npm ^10.8.1
  • Docker ^24.0.7
  • Docker Compose ^1.27.4

Installation

Production Environment

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.

Development Environment

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

Configuration

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.

File Structure

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.

Usage

  • npm start Start server on live mode
  • npm run docs Generate API documentation
  • npm test Run mocha tests

Documentation

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.

Dependencies

License

MIT

About

A fork of ipfs-service-provider using LevelDB instead of MongoDB

License:MIT License


Languages

Language:JavaScript 97.4%Language:Shell 1.0%Language:HTML 1.0%Language:Dockerfile 0.6%