Giter Site home page Giter Site logo

run-sdk's Introduction

RUN SDK - 0.6.41 beta

tests codecov

Note: This project is no longer supported. The repository exists for reference only.

RUN is a token protocol to build whatever you dream up. A world of interactive apps and tokens.

To give it a go, visit https://run.network for tutorials and docs.

Installation

Run npm install to install node dependencies.

Then run npm run build to build the browser and node libraries.

Community

Join us in our Discord, Run Nation: https://run.network/discord. Here you'll meet other developers using Run, hear about cool projects launching, and know right away when there are new announcements.

Getting Help

Post what's on your mind in the "ask-for-help" channel in the Run Nation Discord.

Commands

  • npm run lint - Lint and automatically fix errors
  • npm run build - Build outputs
  • npm run test - Test library quickly
  • npm run test:node - Test the minified node build
  • npm run test:browser - Test the minified browser build (Chrome default)
  • npm run test:cover - Collect code coverage
  • npm run test test/plugins/local-purse.js - Run just the purse tests

Configuring the tests

Various environment variables may be used to configure the tests:

Name Description Possible Values Default
NETWORK Network to test on mock, main, test, stn mock
BROWSER Browser used for testing chrome, firefox, safari, MicrosoftEdge chrome
STRESS Whether to run the stress tests true, false false
PURSE_[network] Purse key used on a specific network your string privkey undefined
API Blockchain API when not using the mock network run, whatsonchain undefined
APIKEY_[api] API key used with a specific blockchain API your string api key undefined
LOGGER Whether to log internal messages to the console true, false false

Examples

  • env BROWSER=safari npm run test:browser - Test the browser build on Safari
  • env STRESS=1 npm run test - Test library with stress tests
  • env NETWORK=test env PURSE=<funded_private_key> npm run test - Run all tests on testnet

.env file

For ease of use, you may also store these variables in a .env file where the tests are run. Here's a sample:

BROWSER=safari
PURSE_MAIN=<your priate key>
PURSE_TEST=<your private key>
APIKEY_WHATSONCHAIN=<your api key>

run-sdk's People

Contributors

brentongunning avatar

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.