Giter Site home page Giter Site logo

openstudio.js's Introduction

openstudio.js

This is an experiment in loading OpenStudio into electron using OpenStudio's Node bindings. In this repository will be notes and files to support that effort.

Setup

  • Clone openstudio.js repository. (Or whatever it should be called)
git clone https://github.com/kbenne/openstudio.js.git
cd openstudio.js
  • Install io.js or nodejs. This will only be used for bootstrapping. Specific versions of the required dependencies will be installed through npm.

  • Install openstudio.js dependencies.

npm install
  • Extract OpenStudio node bindings to <project root>/services/. You should end up with a directory <project root>/services/openstudio-node/ that contains a bunch of shared libraries and .node native extensions.

    Mac - 64 bit

    Windows - 64 bit

    Linux

  • Launch the application.

./node_modules/.bin/electron .

Building OpenStudio Node Bindings

If precompiled binaries are not available then do this.

  • Install the dependencies required to make native node modules that are compatible with electron. The general method is described here.
HOME=~/.electron-gyp ./node_modules/.bin/node-gyp install --target=0.28.0 --arch=ia64 --dist-url=https://atom.io/download/atom-shell
cd ../
git clone https://github.com/NREL/OpenStudio/tree/openstudiojs
cd OpenStudio
  • Configure top level OpenStudio to build node bindings. Enable BUILD_NODE_MODULES. Set NODE_INCLUDE_DIR to $HOME/.electron-gyp/.node-gyp/0.28.0/ replacing $HOME with path to home, where .electron-gyp is located.

  • Build OpenStudio

openstudio.js's People

Contributors

kbenne avatar axelstudios avatar

Stargazers

Arif Hanif avatar  avatar Nick Mattise avatar  avatar

Watchers

 avatar  avatar James Cloos avatar Dan Macumber avatar Mohammad Heidarinejad avatar Jason Glazer avatar Matt Steen 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.