From VSCode using SQLite3 Editor, show your unique collection/table in database, display rows and columns in the table of the SQLite database: Clearly a unique table with unique rows and columns (username, type, content, likes, etc.).
From VSCode model, show your unique code that was created to initialize table and create test data: Model file with the relevant code is shown, and so is the init function.
List and Dictionaries
In VSCode using Debugger, show a list as extracted from database as Python objects: Designs is the list, has multiple design objects that were fetched.
In VSCode use Debugger and list, show two distinct examples of dictionaries, show Keys/Values using debugger: Has body for when logging in (uid, password, name) and thedesign for specific values about the saved design (name, owner, type, etc.)
API and JSON
In VSCode, show Python API code definition for request and response using GET, POST, UPDATE methods. Discuss algorithmic condition used to direct request to appropriate Python method based on request method: Has api code defining the three methods as separate functions, which I assume is how the appropriate method is determined.
In VSCode, show algorithmic conditions used to validate data on a POST condition: Uses iteration and if states to ensure that the body sent to the backend has actual values.
In Postman, show URL request and Body requirements for GET, POST, and UPDATE methods, and In Postman, show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods: Has all three requests (1 GET, 2 POST, 1 PUT) shown in Postman with the URL, body, and output. One interesting note is that the GET appears to get the entire database and not a single entry.
400 error for missing body for POST request isn't included.
In Postman, show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request: 404 error shown using PUT, appears to use unauthorized rather than unknown user ID but still uses the error.
Frontend
In Chrome inspect, show response of JSON objects from fetch of GET, POST, and UPDATE methods: Object Designs is console logged as a dictionary with the designs and content.
In the Chrome browser, show a demo (GET) of obtaining an Array of JSON objects that are formatted into the browsers screen:
In JavaScript code, describe fetch and method that obtained the Array of JSON objects: GET request to display for the searched design. Description can be more in detail and elaborated on more.
In JavaScript code, show code that performs iteration and formatting of data into HTML: Code appears to show how the data fetched is displayed and formatted into the table, but unsure about where iteration was used. Multiple if states are used which is somewhat close
In the Chrome browser, show a demo (POST or UPDATE) gathering and sending input and receiving a response that show update. Repeat this demo showing both success and failure:
In JavaScript code, show and describe code that handles success. Describe how code shows success to the user in the Chrome Browser screen: If the check to see if the response isn't ok is passed, the user is redirected to another page.
In JavaScript code, show and describe code that handles failure. Describe how the code shows failure to the user in the Chrome Browser screen: If the check to see if the response isn't ok is failed, then the HTML is updated with text alerting the user. There is also a commented out line that redirects the user to an error page.
Optional/Extra, Algorithm Analysis
Show algorithms and preparation of data for analysis. This includes cleaning, encoding, and one-hot encoding: Trains the data using the data_train database and creates a logistical regression model.
Show algorithms and preparation for predictions: Function called predict which uses the user input to determine amount of a loan using the logistical regression.
Discuss concepts and understanding of Linear Regression algorithms: Simple, effective description and explanation of what linear regression is and how it works, even including an analogy and example situation.
Discuss concepts and understanding of Decision Tree analysis algorithms: Fun and accurate explanation of what decision tree analysis is and how it works, using a comparison to 20 Questions (game) for how to make predictions and organize/understand data.
Looks
Formatting is basically perfect, but there are tiny errors with the indenting of the bullet points in the second half of Frontend, and perhaps nesting the explanations of linear regression and decision tree analysis under the question would make more sense. Yet, these are very picky details, and the vast majority of everything else is good. Explanations have no grammar errors as well.
Grade: 0.93/1, 93%
The only thing to really fix/improve on would be to include the 400 error for a missing body for the POST request and to maybe elaborate a little more on the descriptions. However, everything else is basically perfect and the extra algorithm analysis at the end does display a strong understanding of the machine learning and integration into their project, making this deserving of a 0.93.
Srijan Atti Mr. Lopez Period 4
Link to Blog