953740669wu / CITS3403

0 stars 0 forks source link

Publish and Comment feature for Forum page and served as base feature for future needs #53

Open YunhaoJin02 opened 4 months ago

YunhaoJin02 commented 4 months ago

Feature Request: Publish and Comment on Questions in Forum Page

Description

We need to enhance our forum page by allowing users to publish and delete their questions, as well as comment on existing questions. This will involve backend implementations using Python, Flask forms for input handling, and database interactions to store user-generated content. This functionality is crucial for user engagement and for future features like viewing user profiles.

Detailed Features

Feature 1: Publish and Delete Questions

Feature 2: Comment on Questions

Technical Requirements

  1. Form Handling:

    • Use Flask-WTF for form creation and handling in form.py.
    • Implement CSRF protection and validate user input to prevent security vulnerabilities.
  2. Backend Python Files:

    • Create dedicated Python modules (question_manager.py, comment_manager.py) to handle business logic related to questions and comments.
    • Ensure separation of concerns by maintaining clear boundaries between database interactions, business logic, and presentation.
  3. Database Design:

    • Design database schemas to include tables for users, questions, and comments.
    • Ensure relationships are properly defined, e.g., users to questions, questions to comments.
  4. AJAX for Dynamic Updates:

    • Use AJAX calls for adding, deleting, and displaying questions and comments to ensure the page does not require reloading.

Expected Outcomes

Implementation Notes

Additional Resources

Conclusion

Implementing these features will significantly enhance the user experience on the forum page by enabling dynamic interactions and ensuring the foundation is built for advanced features like user profiles. Proper execution will require careful attention to both the user interface and backend architecture.