Skip to content

wznpp1/tabris-js-hello-world

 
 

Repository files navigation

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"
    }
  }
}

About

Tabris.js Example App

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 84.5%
  • Ruby 15.5%