This app was directly derived from an Angular web application example in this repo: https://github.com/book-monkey2-build/iteration-3-http Only the markup had to be substantially changed. The components and modules are almost the same and the service layer is entirely untouched.
Clone the repository
git clone https://github.com/angular-buch/book-monkey-nativescript.git cd book-monkey-nativescript
npm install -g nativescript
If you're unsure about setting up your Android SDK or Xcode please refer to this guide: http://docs.nativescript.org/angular/start/quick-setup
tns platform add android OR
tns platform add ios
All set! You can now run the app using
tns run <PLATFORM>(which requires a connected device) or
tns run <PLATFORM> --emulator(which requires a running emulator)
In example, the following command runs the project on the android emulator:
tns run android --emulator
tns device and/or run
tns doctor to check your setup.