GithubHelp home page GithubHelp logo

jeff-lewis / node-openfin-launcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdepena/node-openfin-launcher

0.0 2.0 0.0 269 KB

OpenFin-Launcher is an Node.js module that automates the downloading and launching of The OpenFin Runtime

Home Page: http://openfin.co/

License: MIT License

JavaScript 100.00%

node-openfin-launcher's Introduction

#OpenFin-Launcher Build Status

OpenFin-Launcher is an Node.js module that automates the downloading and launching of The OpenFin Runtime. This module asumes you have an application config file. You can read up on application config options on the OpenFin config file API docs, or generate it automatically with the openfin-config-builder.

Currently only supports Windows.

Getting Started

$ npm install --save openfin-launcher

Usage

var openfinLauncher = require('openfin-launcher');

openfinLauncher.launchOpenFin({
        //Launch a hosted application
        configPath: 'http://localhost:5000/app.json'
        //Or a file path
        //configPath: 'file:/C:/helloWorld/app.json'
    })
    .then(function() {
        console.log('success!');
    })
    .fail(function(error) {
        console.log('error!', error);
    });

//you can also specify the location of the OpenFin Runtime rvm and the download url
openfinLauncher.launchOpenFin({
        configPath: 'http://localhost:5000/app.json',
        rvmPath: 'C:/helloWorld/OpenFinRMV.exe',
        rvmUrl: 'https://developer.openfin.co/release/rvm/latest'
    })
    .then(function() {
        console.log('success!');
    })
    .fail(function(error) {
        console.log('error!', error);
    });

##Options

####configPath Type: String

Default Value: ''

OpenFin Application Configuration file path as described in the OpenFin config file API docs.

Examples:

'http://localhost:3000/app.json'
'file:/C:/helloWorld/app.json'

####rvmPath Type: String

Default Value: path.resolve('OpenFinRVM.exe');

OpenFin RVM location, if not found at the specified path the latest version will be downloaded.

###rvmUrl Type: String

Default Value: https://developer.openfin.co/release/rvm/latest

Location to the OpenFin RVM downoad URL, if the OpenFin RVM is not found this URL will be used to download the binary.

License

MIT

node-openfin-launcher's People

Contributors

datamadic avatar dwaynekj avatar

Watchers

Jeff Lewis avatar James Cloos 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.