Skip to content

RodinJS/Rodin-Builder

Repository files navigation

Rodin Builder

API

Check api documentation here

Setup and Run

1. Clone this repo

$ git clone <repo url>

2. Install dependencies for image manipulation

OS Command
OS X brew install pkg-config cairo libpng jpeg giflib
Ubuntu sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
Fedora sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solaris pkgin install cairo pkg-config xproto renderproto kbproto xextproto
Windows Instructions on our wiki

El Capitan and Sierra users: If you have recently updated to El Capitan or Sierra and are experiencing trouble when compiling, run the following command: xcode-select --install. Read more about the problem on Stack Overflow.

3. Install node dependencies

$ cd <path/to/project>
$ npm install

4. Run server for specific platform builder, use -p flag for running in specific port.

IOS

node app.js --ios -p 10000

Android

node app.js --android -p 10000

Oculus Rift

node app.js --oculus -p 10000

HTC Vive

node app.js --vive -p 10000

5. Running with pm2

There are specific json files in directory ./pm2 for running with pm2 and cluster mode. Change ports and run

IOS development and production modes

pm2 start pm2/ios.json
pm2 start pm2/ios-dev.json

Apps

Each app has appId and appSecret, which are required for connecting with service.

Create new app

For creating new app for android builder

$ node scripts/generateApp.js --android --name <new-app-name>

--name is required.

This will create new app and give you appId nad appSecret.

List all apps

For listing all apps

$ node scripts/listApps.js --android

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •