Skip to content

cryptogarageinc/cg-cfd-js

Repository files navigation

Crypto Finance Development Kit for JavaScript (CFD-JS)

JavaScript wrapper of cfd libraries

Dependencies

  • C/C++ Compiler   - can compilefe c++11
  • CMake (3.14.3 or higher)
  • Python 3.x
  • node.js (stable version)

Windows

download and install files.

  • Visual Studio (Verified version is 2017 or higher)
    • use for compiler only
  • Visual Studio Build Tools (2017 or higher)
  • cmake (3.14.3 or higher)
  • Python 3.x

MacOS

# xcode cli tools
xcode-select --install

# install dependencies using Homebrew
brew install cmake python node

Linux(Ubuntsu)

# install dependencies using APT package Manager
apt-get install -y build-essential cmake python nodejs

cmake version 3.14.2 or lower, download from website and install cmake. (https://cmake.org/download/)


Build

Using cmake-js

When using the cmake-js package and npm script, the options for compilation are already set.

npm install
npm run cmake_all

Example

Test

npm run test_all

Example

Bitcoin

npm run example

Elements

npm run elements_example