SGTech08 / student

MIT License
0 stars 4 forks source link

Data Structures FRQ Writeup #22

Open SGTech08 opened 2 months ago

SGTech08 commented 2 months ago

Map the below elements from MiraCosta course description using your CPT project. This must be unique to your portion of the integrated project.

My project last trimester was all about real estate. The purpose of our tool was to build an all in one real estate website where people can browse through houses and its statistics as well as using a ai model to help you decide where you should buy your house based on salary and other specifications

SGTech08 commented 2 months ago

Collections

In our project we added a feature where users are able to favorite the houses they like. We added this feature because sometimes you have to do something else for a while and when you come back the house you were looking at is gone. Using favorites we can make houses people were looking at with their id (from when they logged in) to allow them to access the houses they were looking for.

image

We also added a sqlite database of the houses that were on the market in socal.

image

We used the following code to map our csv with our sqlite database.

image

SGTech08 commented 2 months ago

Lists and Dictionaries

Blog Python API code and use of List and Dictionaries.

image

In VSCode using Debugger, show a list as extracted from database as Python objects. image The above images lets use sort through the list which has a dictionary. We can sort through all the values it has as well like sq feet, rooms, bathrooms, and etc.

In VSCode use Debugger and list, show two distinct example examples of dictionaries, show Keys/Values using debugger.

image

SGTech08 commented 2 months ago

APIs and JSON

Blog Python API code and use of Postman to request and respond with 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.

image

In VSCode, show algorithmic conditions used to validate data on a POST condition. We used this for the signup and login

image

In postman show url request and body requirements for get post and update methods

image image

In Postman, show the JSON response data for 200 success conditions on GET, POST, and UPDATE methods. image

In Postman, show the JSON response for error for 400 when missing body on a POST request. image Shows that it is not working because it needs a bid and password for it to operate.

In Postman, show the JSON response for error for 404 when providing an unknown user ID to a UPDATE request. image

SGTech08 commented 2 months ago

Frontend

Blog JavaScript API fetch code and formatting code to display JSON. In Chrome inspect, show response of JSON objects from fetch of GET, POST, and UPDATE methods. image

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

In JavaScript code, show code that performs iteration and formatting of data into HTML.

image

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.

image

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

image

srivaidyas commented 2 months ago

Reviewer: Sri Vaidyanathan S

The blog is very well done. The screenshots are organized according to the prompt making it easy to follow. All the requirements are completed and the issue is well organized and goes step by step through the requirements. I think a little more text to explain the code can be added but overall great job!

1.96/2