Reference no: EM133002972
PROG6003 Programming Mobile and Cloud Systems - Southern Cross University
Assignment Overview
The assignment has two parts - Part A (Angular app) and Part B (DynamoDB app). In Part A, you need to implement an Angular app, based on a template Angular app which is provided with the assignment details. In Part B app, you need to implement a simple DynamoDB app to insert and read/display some entries.
Part A - Angular App
Overview: You need to adapt the template Angular app (assgn2app) and convert it to a single-page Angular app that will consume a REST API. The API provides a collection of data records on different types of pets. You will need to: (i) read all the records; as well as (ii) read any single record using the identifier. The template Angular app is uploaded in the Assignment 2 folder of the Blackboard unit site. You need to use Angular only (cannot use Ionic). You need to modify the template app to implement this app using dependency injection. The API endpoint is as below (check the URL in browser to get a better idea).
- You can use this URL directly to send a GET request to the API. It will return all existing records in response.
- You can use URL/id to send a GET/id request to the API. It will return a single record for the id.
The API contains records of different pets (you will see three records). Each record has three fields - id (number), type (string), and price (number). Your Angular app should look something as shown below.
Details: Modify the template app (available in assgn2app.zip) and implement a one-page Angular app with the following features.
• Display the available records of the pets upon a button (‘Show all pets') click. You need to use Angular directive(s) and interpolation to display this list. You will do this implementation in the AppComponent.
• Take the identifier of a pet record as input from the user. Retrieve the corresponding record for that identifier and display it upon a button (‘Show pet details') click. You need to use Angular directive(s) and interpolation to display the record. Proper warning message should appear if user provide invalid input. You will do this implementation in the AppComponent.
• You can use standard HTML controls for implement your view. You do not need to use complex HTML control like <table>.
• You need to use two separate event handler for the button click events.
• A template (PetData) and a service (DataService) classes are available within the service folder of the assgn2app. Both of these classes are empty and you need to define them.
Part B - DynamoDB App
Overview: You need to create a Java app in Cloud9 that can insert five DynamoDB entries, and later, read and print them. This will be a console-based app. You need to use AWS SDK 1 to implement the app. No template app is provided for this part.
Details: With your 200-word report you need to discuss/describe the followings.
• Create a DynamoDB table named Car with a primary key, Id. The table must have the following schema:
Car (Id, Model, Make, Year, Colour); Model, Make, Colour: String, Id, Year: Number
• Create a new Java (Maven) app named yourusernameddbapp in Cloud9. The app must:
o Insert five entries with appropriate values into the ‘Car' table, using a loop; and
o Read the inserted entries and display them to the console, using a loop.
• You need to implement these feature in separate methods in your App.java.
• Use appropriate exception handling and comments in your code.
Attachment:- Programming Mobile.rar