Skip to content

Running the 'demo' app

Vladimir Amiorkov edited this page Aug 24, 2017 · 3 revisions

An demonstration app that showcases all of the available features of the plugin is located in 'demo' folder of the repository.

How to start the app with the local plugin code

The demo application is linked to the source code of the nativescript-fresco plugin, which means that you will need to make sure that that source code is ready for and executable as a stand alone {N} plugin. To do that simply make sure that all of the required by the plugin npm packages are present in the folder under "node_modules". Simple execute the following command in the root of the reposotiry (where the nativescript-fresco.ts file is located):

npm i

After that go to the 'demo' folder and simply start the app via: tns run android

Run the app with {N} + Angular

The demo application contains both the Vanila {N} and {N} + Angular source code which means the same app can be ran for both. By default running the app will lead to running the vanila version, if you want to run the app under Angular simply change the main in the package.json here.