This is a port of the original TVML Catalog Sample Code re-written using atvjs framework. Refer to the framework documentation for its usage details.
Assuming that you have nodejs and npm installed on your machine, do the following to get started:
$ npm install -g gulp karma-cli # Install Gulp and Karma globally
$ npm install # Install dependencies
Builds the application and starts a webserver. By default the webserver starts at port 9001.
$ gulp
By default, it builds in debug mode.
- If you need to build in release mode, add
--type production
flag. - You can define a port with
--port 8080
flag. (If you start the server on a different port, make sure to update the same in the native application) - If you need to run tests while building/starting the application, add
--tests
flag. - To run just the test suite,
gulp test
orkarma start
The project is split into two parts:
- native: this directory contains the Xcode project and related files. The AppDelegate.swift file handles the setup of the TVMLKit framework and launching the JavaScript context to manage the application.
- web: this directory contains the JavaScript and TVML template files needed to render the application. The contents of this directory must be hosted on a server accessible from the device.