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:
- Access Control:
- Only logged-in users should be able to access the “Contact Us” page.
- 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
- User View:
- Each user should only be able to view the list of their own complaints.
- Admin View:
- Implement an admin-only interface where the admin can view all complaints submitted by users.