2. Project 2 - Managing Information about Countries

The purpose of the app to be developed is managing information about countries. Like in the book data management app discussed in the tutorial, you can make the simplifying assumption that all the data can be kept in main memory. So, on application start up, the movie data is read from a persistent data store. When the user quits the application, the data has to be saved to the persistent data store, which should be implemented with JavaScript's Local Storage API, as in the tutorial.

The app deals with just one object type: Country, as depicted in Figure 4.2 below. In the subsequent parts of the tutorial, you will extend this simple app by adding integrity constraints, further model classes, and the associations between them.

Figure 4.2. The object type Movie

The object type Movie

You can use the following sample data for testing your app:

Table 4.2. Sample country data

Name Population Life expectancy
Germany 80,854,408 80.57
France 66,553,766 81.75
Russia 142,423,773 70.47
Monaco 30,535 89.52

More data about countries can be found in the CIA World Factbook.