nban22 / Newspaper

Newspaper Web App: A dynamic online news platform with roles for guests, subscribers, writers, editors, and admins. Features include full-text search, category/tag filters, premium article access, WYSIWYG editor, and secure authentication using Express.js, TypeScript, MongoDB, and EJS
0 stars 0 forks source link

[Homepage] Display Latest Articles #4

Open nban22 opened 1 week ago

nban22 commented 1 week ago

Objective

Fetch and display the 10 most recent articles. Render these articles dynamically on the homepage to highlight the latest content.


Requirements

  1. Database Query

    • Retrieve the 10 most recently published articles.
    • Sort results by publish date in descending order.
  2. Data Rendering

    • Display each article with the following details:
      • Title.
      • Category.
      • Thumbnail image.
      • Publish date.

Deliverables


Acceptance Criteria