TVML architecture

Hi,


I watched some tutorials and also the samples but now I´m confused.


Let´s say there is a main.js.. which must be running on localhost port 9000.

My tvos app is the client which is connecting to that.


What is the real world scenario?
Is the main.js, which i added to the project, running on the AppleTV? So is the "real" hardware my webserver. And this main js is firing another js file for loading the data from somewhere else.
Meaning localhost is correct for the deployment?


Or do I have to deploy my main.js file on my own dedicated webserver?


Could someone explain me the architecture, please?


Just explain me which project or file is running and where it is running?



regards
Martin

You will have to deploy all your .js files, images and other resources to your own server. Your app just connect to those files on your server, you don't include them in the binary you submit to the app store.


The tutorial below helped me in understanding how the TVML apps work:

http://www.raywenderlich.com/114886/beginning-tvos-development-with-tvml-tutorial

No, your localhost (local webserver) is only for development. The xcode app specifies the url of the javascript file your app will look for (it currently points to your localhost, right?) When your JS code is complete, deploy it to a public server, and change the address in your xcode file to point to that version. Then test by compiling and pushing to an actual device.


Good luck!

TVML architecture
 
 
Q