Rayyan Darugar Data Structures Writeup

Collections

  • From VSCode using SQLite3 Editor, show your unique collection/table in database, display rows and columns in the table of the SQLite database. Screenshot 2024-04-16 at 11 02 00 PM
  • From VSCode model, show your unique code that was created to initialize table and create test data. Screenshot 2024-04-16 at 11 02 35 PM

Lists and Dictionaries

  • In VSCode using Debugger, show a list as extracted from database as Python objects.
  • In VSCode use Debugger and list, show two distinct example examples of dictionaries, show Keys/Values using debugger. Screenshot 2024-04-16 at 11 06 31 PM Screenshot 2024-04-16 at 11 07 45 PM

APIs 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. Screenshot 2024-04-16 at 11 08 50 PM
  • discussion: directs to the correct python request method via JSON data passed through and the correct frontend post. gets items individually and updates info accordingly.

  • In VSCode, show algorithmic conditions used to validate data on a POST condition. Screenshot 2024-04-16 at 11 12 39 PM Screenshot 2024-04-16 at 11 15 08 PM

  • In Postman, show URL request and Body requirements for GET, POST, and UPDATE methods.
  • In Postman, show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods.
  • In Postman, show the JSON response for error for 400 when missing body on a POST request.
  • In Postman, show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request. Screenshot 2024-04-16 at 11 16 59 PM Screenshot 2024-04-16 at 11 17 29 PM Screenshot 2024-04-16 at 11 18 31 PM

Frontend

  • In Chrome inspect, show response of JSON objects from fetch of GET, POST, and UPDATE methods.
  • In the Chrome browser, show a demo (GET) of obtaining an Array of JSON objects that are formatted into the browsers screen.

Screenshot 2024-04-16 at 11 19 22 PM

  • In JavaScript code, describe fetch and method that obtained the Array of JSON objects.
  • In JavaScript code, show code that performs iteration and formatting of data into HTML.

Screenshot 2024-04-16 at 11 20 29 PM

  • 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.

Screenshot 2024-04-16 at 11 26 30 PM

Screenshot 2024-04-16 at 11 26 45 PM

  • In JavaScript code, show and describe code that handles success. Describe how code shows success to the user in the Chrome Browser screen.

Screenshot 2024-04-16 at 11 28 46 PM

  • discuss: code, if no errors logging in, routes user to the game screen where they can play games from our site in chrome.

  • In JavaScript code, show and describe code that handles failure. Describe how the code shows failure to the user in the Chrome Browser screen.

Screenshot 2024-04-16 at 11 28 37 PM

  • discuss: code, if errors logging in, routes user to a 403 error page telling them their credentials are incorrect and asking them to try again in the chrome browser.