We know how important it is for a new framework to have samples, so you will be able to find several good examples of open source applications built with NativeScript in our GitHub organization. Open http://github.com/nativescript and search for repositories named after the following pattern "sample-SAMPLE_NAME". All the samples are licensed under the BSD license.
This is the first article from a series of articles we are planning to release as we progress with the application implementation. The full source code of the application is here: http://github.com/nativescript/sample-Tasks.
We chose an app that we know will cover a lot of useful scenarios:
- User management
- User authentication
- User registration
- User welcome email
- Cloud data
- read, update, delete and create data entry stored in the cloud
- Offline support for the data (not in this article, but coming soon)
- Modern UX
- Using SideBar
- Pull to Refresh
- FAB (floating action button for Android Lollipop)
- Load on demand for many tasks
- Device integration
- using camera
- using phone contacts
- Patterns/Technologies used
- CSS for styling
- XML and data-binding for describing the UI
- Platform specific targeting for the Android FAB button
- 3rd party native libraries to load Telerik UI
Creating/Editing a task
Displaying a task
For this application we are using the Telerik platform for the backend services. This way we get user management and cloud storage very easily integrated inside the application. If you prefer you can use any other backend for this application.
Go and check the source code of the application - http://github.com/nativescript/sample-tasks.
The easiest way to start playing with the sample is to get the clone URL (https://github.com/NativeScript/sample-Tasks.git) and open the project inside Telerik AppBuilder. Then you are one click away from deploy the running app on your device.
In the next article we will see how the authentication inside the app is being implemented.
Please let us know your thoughts in the comments section below. If you like what you see please share in with us on twitter @NativeScript.