Giter Site home page Giter Site logo

emadalam / tvml-catalog-using-atvjs Goto Github PK

View Code? Open in Web Editor NEW
35.0 7.0 9.0 72.33 MB

Port of the TVML Catalog Sample Code re-written using atvjs

Home Page: http://emadalam.github.io/tvml-catalog-using-atvjs

License: MIT License

JavaScript 13.31% Swift 2.97% CSS 2.01% HTML 81.71%
tvml-catalog tvml-demo tvjs atvjs apple-tv appletv-demo

tvml-catalog-using-atvjs's Introduction

TVML Catalog: Using atvjs framework

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.

Getting Started

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

Development

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 or karma start

Structure

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.

License

MIT License.

tvml-catalog-using-atvjs's People

Contributors

emadalam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tvml-catalog-using-atvjs's Issues

ERROR in Cannot find module 'handlebars'

I'm a node.js newbie, so excuse me in advance if my suggestion isn't quite right.

I was seeing the following error from the gulp console:
ERROR in Cannot find module 'handlebars' + plus /path/index.js for all page templates (e.g. ERROR in Cannot find module 'handlebars' @ ./web/app/pages/form/index.js 11:16-41) when firing up the Xcode simulator.

To resolve:

  1. npm install -g handlebars
  2. cat package.json in /tvml-catalog-using-atvjs-master (handlebars not shown in devDependencies or dependencies)
  3. npm install --save handlebars
  4. cat package.json in /tvml-catalog-using-atvjs-master (handlebars now shown in dependencies)
  5. restart Xcode simulator / successful start of application

You might consider updating the main package.json as appropriate.

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.