13. Practice Projects

In most parts of the following projects you can follow, or even copy, the code of the book data management app discussed above.

For developing the apps, simply follow the sequence of seven steps described above:

  1. Step 1 - Set up the Folder Structure

  2. Step 2 - Write the Model Code

  3. Step 3 - Configure and Initialize the Application

  4. Step 4 - Implement the Retrieve/List All Use Case

  5. Step 5 - Implement the Create Use Case

  6. Step 6 - Implement the Update Use Case

  7. Step 7 - Implement the Delete Use Case

Make sure that international characters are supported by using UTF-8 encoding for all HTML files.

13.1. Project 1 - Managing information about movies

The purpose of the app is managing information about movies. The app deals with just one object type: Movie, as depicted in the following class diagram:

Notice that in most parts of this project you can follow, or even copy, the code of the book data management app, except that in the Movie class there is an attribute with range Date, so you have to find out how to handle such an attribute.

You can use the sample data shown in Table 3.2 for testing your app.

13.2. Project 2 - Managing information about countries

The purpose of the app to be developed is managing information about countries. The app deals with just one object type: Country, as depicted in the following class diagram:

You can use the sample data shown in Table 3.3 for testing your app.