Since the domain model is the most important component of an application, this section will design it first. The following is the simple class diagram for this web application:
There are two main domain models, as shown in the preceding diagram. They are as follows:
- Article: This is the main domain model, which will store the actual article title, body, link, summary, author, created date, and so on
- User: This domain model will store the username, password, and role of a registered user