Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 918 Bytes

new.md

File metadata and controls

31 lines (24 loc) · 918 Bytes

New

BITBOX will generate a new app w/ empty src/ and test/ directories and a bitbox.js configured to connect to Bitcoin.com’s Cloud.

Usage

new [options] <name>
  Options:
  -s, --scaffold <scaffold>        The framework to use. Options include react, angular, node, next, vue and websockets. (Default: react)
  -r, --restURL <restURL>          The rest URL to use. default: https://trest.bitcoin.com/v2/
  -e, --environment <environment>  environment to map to restURL. Ex: production, staging. Default: development
  -h, --help                       output usage information

$ bitbox new helloEARTH
$ bitbox new helloEARTH --scaffold react

bitbox.js

Your bitbox.js file will contain the default settings to connect to Bitcoin.com’s Cloud.

exports.config = {
  environments: {
    development: {
      restURL: "https://trest.bitcoin.com/v2/",
    },
  },
}