COIT20269 Mobile client/server application Assignment
You are assigned the task of creating a data logger to capture experimental data in a mobile application that stores data in a local database. The app has fields to record scientific data for each of five species of chicken. If a chicken species is selected, a page is shown to record data values for that species. A chicken entry consists of a date and log data. When the Save Log Entry button is pressed these values are saved locally in the devices’ localStorage. When the Show Log Entries button is pressed a related page is shown that lists all the date/time and chicken entries. More details of these pages will be given in the sections below.
We will refer to our app as chickenLogs. The specification of this app extends that given in Assignment 1. This app is to be tested using the Safari, FireFox or Chrome browser and tested on an Android or iPhone mobile device.
You are to implement this app using HTML5, CSS and JQuery Mobile. The app is used by a chicken farmer who the five varieties of chicken on his farm. A number of individual chickens exist for each species and an ID number is used to identify these. For each individual chicken the farmer wishes to record data that can be used to determine how well that chicken performs compared to others.
Images for the page/views required to implement the assignment were given in assignment 1 and are further refined in the following figures. Please note that the illustrations are for reference only, and your actual pages will be based on the CSS style-guide in use on your actual mobile device.
Home page view
The home page view is the same as in assignment 1.
The pages for entering the treatment data are all the same as in assignment 1 and so are not discussed further.
Chicken logs view
When the Show logs button in the treatment’s page header is pressed the current date/time should be added to the data structure used to store the chicken log values being recorded, as in assignment 1. The log entries are saved in the device’s localStorage. The chicken logs page is shown with all the locally saved logs listed, as shown in Fig. 1. Note the view now has a Get Logs button on the left of the header bar.
When the Send… button is tapped all the chicken logs for the treatment are sent to the local server (and saved in the file logs/logs.dat. The chicken data is also saved to the cloud mongoDB Atlas database set up for this purpose. You should provide a success or failure alert. In the success alert, show the data that has been sent. When a response is received another alert should indicate success or failure. When a chicken’s logs have been sent the chicken’s local logs should be cleared from localStorage so that the chicken’s page will not show the sent logs.
If the Yes button is pressed the Send logs dialog shown in Fig. 2 is presented and we return the chicken view. If the No button is tapped thent return to the chicken’s view page.
Get logs button
The Get logs button is used to search the mongoDB Atlas database for all database entries that match the chicken variety (FOGHORN in the figure). The entries returned are shown on a new page as shown in Figure 3. The entries are to be shown below the Cloud chicken log entries: label as shown in the figure 3. Again appropriate alerts need to be made when the request is sent and when a response is received.
You are also to prepare a Word document. Your word document should include an appropriate title page. Your word document should have sections that address the commentary, hardware and software requirements and the financial analysis given below
Plan for a Testing Strategy for your Mobile Web Site
Your document should:
• Review the list of mobile devices, browsers and networks targeted for the mobile web site.
• Discuss the selection of mobile browser models, mobile OS’s and device manufacturers for your testing process
• Discuss whether testing is required on actual devices and what part emulators/simulators and desktop browsers can play in this process
Financial Case & Commentary of Application Features
Your document should:
• List the features you successfully implemented and those you were unable to successfully implement; you should describe the problem in a few sentences and also briefly describe anything you attempted to do to get it to work. Your approach to identifying and attempting to fix these bugs may gain you some partial credit for those features you were unable to implement.
• A description of any additional functionality you believe would be useful to add to this Website should be included. Explain what the features are and how they would help to improve the Website.
• Are there any ethical considerations in making this kind of service available?
• Discuss the economic/financial case for the proposed system.
Assume this simple exercise leads you to consider developing a fully-fledged chickenLogs application (that is generalised to handle any kind of log data) with increased functionality. Assume you model 3 cases; one with 10 users, one with 1,000 users and one with 10,000 users.
• Assume staff development time is costed at $100/hour. Given how long it has taken you to develop this exercise what do you estimate technical development costs to be in hours? What are the development costs for the 3 models, assuming development time increase by 50% for each of the scenarios?
• Database storage costs. If you use the mongdb atlas service to store chickenLogs entries, how much would this cost for your proposed user base, assuming 10 entries per month per employee?
• Discuss your marketing campaign for each of the three cases and estimate a cost for each of these.
• When do you estimate you break even (costs=revenue) in the 3 scenarios? Comment on the results of this analysis