Git Product home page Git Product logo

yajsapi's Introduction

yaJSapi

The JS/TS port of yapapi, Golem's Python API

Prerequisites

Building the Library

(not needed for running examples)

Installation

  • run yarn in main folder

Building

  • run yarn build in main folder
  • build is ready in dist folder!

Testing

Command Description
yarn test:unit Run all unit test
yarn cov Show tests coverage
yarn cov:html GeneratedDetailed test coverage report (HTML in coverage directory)
yarn cov:lcov Generate lcov.info file

Running Examples

Installation

  • cd examples will take you to examples folder
  • yarn will install dependencies for the examples
  • add YAGNA_APPKEY as environment variable;
export YAGNA_APPKEY=your_yagna_app_key_here

When ready

  • npm run js:blender will start blender javascript example
  • npm run ts:blender will start blender typescript example
  • npm run js:low will start javascript low level api example
  • npm run ts:low will start typescript low level api example

Need more logs

Call -d or --debug flag on your example script, e.g. npm run ts:blender -- -d

Subnet

Use the --subnet-tag option, e.g. npm run ts:blender -- --subnet-tag YOUR_SUBNET.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.