Check api documentation here
$ git clone <repo url>
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.
$ cd <path/to/project>
$ npm install
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
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
Each app has appId and appSecret, which are required for connecting with service.
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
.
For listing all apps
$ node scripts/listApps.js --android