Final Lab Exam BSAI– Web Technologies

You have already developed an eCommerce solution as part of your coursework. Extend your project by implementing a “Contact Us / Complaint” feature with the following requirements:

Functional Requirements:

  1. Access Control:
    • Only logged-in users should be able to access the “Contact Us” page.
  2. Complaint Submission:
    • Allow the user to submit a complaint by entering their Order ID and a message.
    • Store complaints in MongoDB along with:
      • User ID
      • Order ID
      • Message
      • Timestamp
  3. User View:
    • Each user should only be able to view the list of their own complaints.
  4. Admin View:
    • Implement an admin-only interface where the admin can view all complaints submitted by users.