Online Media Library
The first chapter shows the theory and deployment of the ZK framework. Now
it's time to do the things that we are here for: implementing applications with ZK.
The next three chapters will show the detailed implementation of a small, but rich
application. It's not really possible to use all components in this application, but the
application at the end of Chapter 4 has many things that you will need in your fi rst
project with the ZK framework.
With the help of this chapter, you should be able to build your own applications
based on the ZK framework. In this chapter, we only build the cornerstone of the
Online Media library, and improve it step by step in the next chapters
An Online Media Library
There are some traditional applications that could be used to introduce a framework.
One condition for the selection is that the application should be a CRUD (Create
—Read—Update—Delete) application. Therefore, an 'Online Media Library', which
has all four operations, would be appropriate. We start with the description of
requirements, which is the beginning of most IT projects.
The application will have the following features:
- Add new media
- Delete media
- Search for the media (and show the results)
- User roles (administrator for maintaining the media and user accounts for
browsing the media)
In the first implementation round the application should only have some basic
functionality that will be extended step by step.
A media item should have the following attributes:
- A title
- A type (Song or Movie)
- An ID which could be defi ned by the user
- A description
- An image
The most important thing at the start of a project is to name it. We will call our
project ZK-Medialib.
|