Testing and Deploying

From NSB App Studio
Revision as of 03:20, 2 August 2012 by Brendon (talk | contribs)
Jump to navigation Jump to search

The easiest way to test your app is in your desktop browser. Use “Start in Desktop Browser” under the File menu. It will run in your default browser, which should support WebKit. At this time, Chrome and Safari support WebKit.
You can debug your program using the desktop browser. For more information, see Tutorial 10, “Using the Chrome Debugger”.
Once your program runs well in the desktop browser, you can deploy it to a server. Devices can then load your program from that server.
Deploying
NS BASIC provides a server for testing apps, called the NS Basic/App Server. When you choose Deploy from the menu, your program and any files listed on the manifest are copied to the server. When the upload is complete, the IDE will give you the URL to open the app from.
The first time the app is run on the device, the files on the manifest are copied to the device. Your app can then be run locally, without an internet connection.
If you change your program and upload it again, there is a pause while the files are moved into place on the NS Basic/App Server.
The next time you run the program (or refresh), the device runs its current version from memory while it gets the latest manifest from the server. It compares them: if the manifest has changed, it then downloads the whole application again and saves it to the device. Once this is complete, the new version of the app will run next time you do a refresh.
For more information, see Tech Note 05, “Distributing your App”.