1. Choose your tools and set up your system.
If you are familiarwith the Cordova CLI or if you want to develop and build your apps locally andfree of charge, you can set up your system with the NativeScriptCLI.
· Windows setup
· OS X setup
· Linux setup
Else if you prefer toconcentrate on development and build your apps with a third-party buildservice, you can use the Telerik AppBuilder tools.
· In-browser IDE
· Windows IDE
· Extension for Visual Studio
· CLI
2.Architecture
Here's a guide to whatthese files do:
- The inner app directory is the development space for your application.
- The platforms directory is created empty. When you add a target platform to your project, the NativeScript CLI creates a new subdirectory with the platform name. The subdirectory contains the ready-to-build platform-specific resources of your app.
- The App_Resources subdirectory is the directory that contains platform-specific resources such as icons, splash screens and platform-specific configuration files like AndroidManifest.xml and Info.plist. When you create a new project, only icons and splash screens are present in this directory.
- The tns_modules subdirectory contains the NativeScript modules. Each module exposes a device or platform functionality such as the camera, location services or the user interface.
- app.js is the starting point for the logic of your app. In the sample app, app.js sets the app's mainModule, or the first page in your sample app, to app/main-page, which effectively gives control to the app/main-page.js and app/main-page.xml files.
3.Modules
4.Application life cycle