Tabris.js Example App
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cordova
fastlane
src
.gitignore
.tabrisignore
.travis.yml
Dockerfile
Jenkinsfile
Jenkinsfile-Android
LICENSE
README.md
buildConfig-android.json
package.json
tsconfig.json
tslint.json

README.md

Build Status

Hello World example for Tabris.js

Run

In the project directory, run the Tabris CLI command:

tabris serve

This will start a JavaScript app code server at a free port and print its URL to the console.

The JavaScript app code can be side-loaded in the developer app if the default config.xml was not changed. Otherwise, the JavaScript app code must be side-loaded in a debug build of this app.

Build

The app can be built using the online build service at tabrisjs.com or locally using Tabris.js CLI.

See Building a Tabris.js App for more information.

Build with Docker

Create the tabris-cli Docker image:

$ docker build . -t tabris-cli

Run a tabris-cli container with mounted workspace:

$ cd tabris-js-hello-world
$ docker run -it --rm -v "$PWD":/workspace tabris-cli /bin/bash

Within the container prepare and build tabris-js-hello-world app with:

$ npm install
$ BUILD_NUMBER=4 tabris build android

...
BUILD SUCCESSFUL

Total time: 52.348 secs
Built the following apk(s):
	/workspace/build/cordova/platforms/android/build/outputs/apk/android-debug.apk

Build with custom code signing key

If you want to sign your app with the same key in each build (e.g. when using Google Maps) you can use --cordova-build-config. (This parameter has been itroduced to Tabris CLI with version 0.6.0)

$ tabris build android --debug --cordova-build-config=cordovaBuildConfig.json

The following cordovaBuildConfig.json contains the signing details for a debug build:

{
  "android": {
    "debug": {
      "keystore": "../signing/debug.keystore",
      "storePassword": "android",
      "alias": "androiddebugkey",
      "password" : "android"
    }
  }
}