Skip to content

Conversation

@dora1405
Copy link

Video Store Consumer

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Paste a link to the PR for your API Ada-C12/video-store-consumer-api#11
For each person in your pair, describe something you learned from your partner during this project Dora: talking through and designing how the components interact with each other; Linnea: Same as Dora, we did a lot of learning together!
What was one area of React you gained more clarity on during this assignment? How the backend and frontend interact, and that the movie-wrapper.rb in Rails make the external API call...which if it didn't exist, guessing that there would be more code involved in React to make the external API call and include the query params.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content We chose to check the external movie's external_id with our rental library's movie's external_id to verify if it exists in our library. If it matches, then that external movie would not be added to our library inventory again.
Describe how you handled rentals with React We set the state for selected customer and selected movie. Once both are selected then the user can click the 'add rental' button which calls the function to execute an axios.post request. The selected movie title is interpolated into the axios post request in the url, and the customer id and due date are passed in as object to the axios.post params.
Describe a DOM event your application handled When user selects a customer for the rental then the selectedCustomer state is set and in the App's navigation, the

tag that shows the Selected Customer updates to show the customer.

Did you use any functional stateless components? What for? We have the Home component and it was used for showing the selected movie and customer to make the rental. It grabbed those info from App which this functional component lives in.
Did you use any container components? What for? Nope.
Do you have any recommendations on how we could improve this project for the next cohort? It would be cool to have another project or add on to original Video Store API on how to make a movie wrapper file to also make external API calls.

llinneaa and others added 25 commits December 16, 2019 16:47
… SearchBar.js and nested component into Movie Search page.
…d .git add .! amazinggit add .git add .git add .git add . this is awesomegit add .git add .git add .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants