Full-Stack Development

Flask ‐ Review Submission

Lesson 03.05.13

Essential Question:

  • How do we design a review system that effectively captures and displays customer feedback?

Learning Objectives:

  • Design an intuitive interface for users to submit and view reviews
  • Implement routes to handle review submissions and display
  • Calculate and display average ratings for products

Standards:

  • NYS Next Generation Learning Standards WHST.3.11-12 Write narratives to understand an event or topic, appropriate to discipline-specific norms, conventions, and tasks.
  • New York State Learning Standards CDOS 3a Students will demonstrate mastery of the foundation skills and competencies essential for success in the workplace.
  • CompTIA IT Fundamentals 2.3 Explain the purpose of common internal computing components.

Materials:

Scaffolds:

Bridging Learning Gaps:

  • During worktime instructor will provide one-on-one support to scholars needing extra help with checkout page implementation

Extensions:

  • Scholars will be prompted to create an average rating feature for products based on submitted reviews
  • Scholars will be prompted to create a star rating input system for reviews

Opening Task (30 mins)

  • Scholars will complete opening task on Schoology covering topics learned from python foundations unit
  • Randomly selected scholar will facilitate review with peers

Creating Review Demo (30 Minutes)

Instructor-led code along to demonstrate how to create a review submission form.

Break (10 Minutes)

WorkTime (60 Minutes)

Scholars will finish up their review system, including displaying submitted reviews and calculating average ratings.

Scholar review page should include:

  • Submission form with:
    • Text area for review content
    • Rating input (e.g., dropdown or radio buttons for 1-5 stars)
    • A submit button to post the review
  • Display area showing reviews including:
    • Review text
    • Rating
    • User who submitted the review
    • Timestamp of submission
  • Average rating display for the product

Cleanup / Dismissal (10 Minutes)

Scholars begin packing up, and submit their completed checkout page