Applying web components to the project tasks app
(Get the code with: git clone git://github.com/dzenanr/polymer_project_tasks.git
)
The model that forms the basis for this app is a typical many-to-many relationship between the two entry concepts Project and Employee: a project has many employees, and an employee works on many projects. The many-to-many relationship between Project and Employee is normalized into two one-to-many relationships by introducing the intermediary Task concept, a Project consists of many Tasks and an Employee has many Tasks:
Project (1-n) Task and Employee (1-n) Task
A Project has a name (its ID), a description, and a Tasks collection. An Employee has an email
(its ID), a lastName
and a firstName
(both required), and a Tasks collection. A Task has a project, an employee, and a description: its ID is composed of the IDs of Project and Employee, so an employee can only have at most one task in a project. The code for this model is based on the Dartlero framework and can...