| Student | Elizabeth |
|---|---|
| Order | 2 |
| Category | Overall |
| Prompt Title | Solutions OVerview |
| Prompt | The app will be built with HTML/CSS/mySQL/PHP and as little JavaScript as possible. Please use classes with PHP. Make sure SQL is secure - especially SQL injection. Reuse code as much as possible and design the CSS for the whole app not just one page at a time. Family members and meals will be stored in a database (see Database Architecture). Each week, the user marks who will be home. A first pass of plain code (not AI) filters the meal database down to meals that satisfy the protein-mix rule (2 chicken/2 fish/1 meat/1 veggie) and excludes anything a present family member has marked as disliked. That filtered candidate list is then handed to an AI call, along with each present family member's preference ratings, and the AI ranks/selects the best 6 meals for the week from the candidates — this is the one "fuzzy" judgment call that's hard to hand-code well. The result is shown as a suggested weekly menu, and each family member can approve or swap individual meals. Make my file structure so that there folders for CSS, images, classes and includes. Make sure to add in error checking and data validation for all user input including testing edge case. If getting data from an API - what happens if it fails to connect? Gets bad data. |
