Skip to content

Sample for demonstrating various aspects of modern cross-platform applications.

Notifications You must be signed in to change notification settings

pYr0x/boardz-cross-platform-sample

 
 

Repository files navigation

Sample application for various “Cross-Platform HTML5 – in Action!” workshops

Requirements

Setup

Building

The gulp task will build iOS, Windows UWP, Android phone apps as well as desktop apps for Mac OSX, Windows and Linux. To get it working, please do the following:

  • After cloning the repo: npm i --no-progress within the root folder of this repository
  • Run gulp watch-web to start a live server, which is best when developing the app
  • Run gulp to build the web app
  • Release Mode: Use the following gulp tasks to build the apps in release mode
    • Run gulp build-all to build all apps in debug mode
    • Run gulp build-web to build the web app
    • Run gulp build-cordova to build all phone related apps
    • Run gulp build-electron to build all desktop related apps

Running

Web

Use gulp watch-web as mentioned above to start the browser version of BoardZ.

Cordova

To run the cordova project, open a terminal and point it to dist/mobile. Use one of the following commands to start:

  • cordova run ios: Runs the iOS version of BoardZ. Requires a Mac
  • cordova run android: Runs the Android version of BoardZ. Requires Android SDK to be installed and at least a simulator

If a device is connected, the run command will automatically deploy the App to your device, so you can start it directly on your device.

Electron

To start the electron packaged app, go to dist/desktop/build and open one of the directories suiting your current operating system. Then open the executable as used to.

Supported platforms

  • Any modern web browser (Chrome, Firefox, Edge, Safari) by simply hosting it
  • Mobile platforms (iOS, Android, Windows) by packaging the app using Cordova
  • Desktop platforms (Windows, Mac OS X, Linux) by packaging the app using GitHub's electron

Android Settings

SDK version

If you want to change Android's SDK version, open cordova/config.xml and search for android-minSdkVersion or android-targetSdkVersion:

  • android-minSdkVersion: An integer designating the minimum API Level required for the application to run.
  • android-targetSdkVersion: An integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion.

Third-Party Libraries

JavaScript, CSS

Native Wrappers

Additional Resources

About

Sample for demonstrating various aspects of modern cross-platform applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.9%
  • JavaScript 16.3%
  • C# 7.0%
  • HTML 4.6%
  • CSS 0.2%