Skip to content

iamnapo/btc-network

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
lib
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

btc-network

Tiny module that creates a btc network using docker images

dockerhub build npm

Install

  1. If you don't have Docker, install it:

    curl -fsSL https://get.docker.com -o get-docker.sh
    sh get-docker.sh
  2. If you don't have Node.js, install it:

    $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
    $ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
    		[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
    $ nvm i "lts/*"
  3. Install btc-network globally:

    $ npm i @iamnapo/btc-network -g

Note: If you want a one-liner to do all of the above:

$ curl -o- https://raw.githubusercontent.com/iamnapo/btc-network/master/install.sh | bash

Note: If you don't want to use node/npm, you can download the corresponding binary. Keep in mind that Docker is still required.

Usage

WARNING: Check the files in templates/ for the required input structure.

Usage

$ btc-network --help for more info.