CPT Review
CPT Review
Individual Review
CPT Project Overview
“Let-m-Cook” is a baking game in which the user navigates the website, baking, trading, and buying ingredients/recipes. The main focus of the game is its baking aspect in which the user tries out different combinations of ingredients to create recipes. Most of these recipes can be used to create more recipes as well.
Individual Features
My feature is the usage of the ingredients the user holds and the dragging and dropping of those ingredients to be baked. My feature sends a GET request to the backend and retrieves the current ingredients/recipes the user has then displays it on the frontend to be used for baking.
College Board Requirements
- Instructions for input from the user
On this page the user is able to drag and drop any ingredient they own into the pan to be baked. They are also able to clear the pan in case they want to use a different set of ingredients. Javascript code that creates a dropzone for the user to drop an item in. DropZone Commit
- Use at least one list(or other collection type) to represent a collection of data that is stored and used to manage program complexity and help fulfill the program’s purpose
Whenever the user loads on to the baking page a GET request is sent to the backend to reference the item’s column so that the frontend can display what ingredients the user currently has. The image directly above is a picture of the schema and the “item’s column.” The image above is part of the code that creates the items column in the SQL database.Backend Items Fix Commit Frontend code that sends a fetch request to the backend and retrieves the current list of items.Fetch commit
- At least one procedure that contributes to the program’s intended purpose, where you have defined: the procedure’s name, the return type, one or more parameters
This is the bake function that checks what elements are currently inside of the pan that way they can be cross-referenced with our baking api later to determine what recipe needs to be created. The procedure’s name is bake, and when the procedure is run it redirects the user to another page. Baking Commit
- An algorithm that includes sequencing, selection, and iteration that is in the body of the selected procedure
This section of the bake function iterates through each section of the baking pan. It then appends whatever elements reside in each section into an array. Baking Commit
- Calls to your student-developed procedure
When the button is clicked the bake function is run Baking Button Commit
- Output based on Input
Returns the ingredients inside the pan, then sends POST request to the backend to be referenced
Video
Pull Reqs
All Pull Reqs Key Pull Request That Integrated Backend With Feature