GithubHelp home page GithubHelp logo

eclipsesource / tabris-js-hello-world Goto Github PK

View Code? Open in Web Editor NEW
2.0 12.0 11.0 2.16 MB

Tabris.js Example App

License: Eclipse Public License 1.0

TypeScript 15.70% Ruby 13.85% Dockerfile 57.17% Shell 13.28%

tabris-js-hello-world's Introduction

Build Status

Hello World example for Tabris.js

This is a simple Hello World app written in Tabris.js. Its main purpose is to illustrate the different ways to build a Tabris.js app.

Tabris.js Build Service

The easist way to build a Tabris.js app is to place it in a public GitHub repository and then use the build service available on https://tabrisjs.com

Android Build on Travis

This project is built on Travis CI. The .travis.yml defines what happens during that build. You can use the file as a template to build your own Tabris.js apps on Travis. Just place a copy of the .travis.yml in the root folder of your own Tabris.js project.

Android Build with Docker

This project contains a Dockerfile that describes an Android build environment. If you have Docker installed you can create an Android .apk file for this Hello World app without installing an Android SDK. This makes it very convenient to perform builds on your development machine or in a CI system. Just follow these two steps:

  1. create the Docker image
  2. start a build (using that image)

Create Docker Image

Create the tabris-js-build-android Docker image:

docker build . --tag tabris-js-build-android:latest

Build in Docker Container

Build the Hello World app in a Docker container created from the tabris-js-build-android Docker image:

cd tabris-js-hello-world
docker run --rm -v $(pwd):/workspace -e BUILD_NUMBER=4 -e TABRIS_BUILD_KEY=<my-build-key> tabris-js-build-android tabris build android

The TABRIS_BUILD_KEY holds your build key available from https://tabrisjs.com/settings/account.

Interactive Build in Docker Container

Run an interactive tabris-js-build-android container with mounted workspace:

cd tabris-js-hello-world
docker run -it --rm -v $(pwd):/workspace tabris-js-build-android /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"
    }
  }
}

tabris-js-hello-world's People

Contributors

cpetrov avatar fwaibel avatar jonek avatar karolszafranski avatar mpost avatar tbuschto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.