Skip to content

Becca and Kate P#12

Open
Catherina87 wants to merge 42 commits intoAda-C13:masterfrom
Catherina87:master
Open

Becca and Kate P#12
Catherina87 wants to merge 42 commits intoAda-C13:masterfrom
Catherina87:master

Conversation

@Catherina87
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-C13/video-store-consumer-api#7
For each person in your pair, describe something you learned from your partner during this project Becca: I learned from Kate how to build up axios post requests from the most basic to the full functionality. Kate: I learned from Becca how to nicely style the app as well as how to design the user interface for rentals which in its turn helped to create a logic for the actual method.
What was one area of React you gained more clarity on during this assignment? components, useState hook, useContext hook.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content We were able to differentiate between the movies with the same titles by their external_ids. External_ids must have been unique in the external API, so we were able to add two movies with the same title (like remakes of old movies), but were distinct in our database as well.
Describe how you handled rentals with React We used sessionContext to store the data of the selected customer and selected movie. From this data in the front-end selected through React, we sent an axios post request to our rails endpoint for checking out a movie. In the same way we implemented a movie check in.
Describe a DOM event your application handled Our application handled clicks on the navbar links by routing to the correct component. On clicking the customers' link, the react router directed the request to our Rails customer index action which loaded all the customers in our table to display to the user.
Did you use any functional stateless components? What for? Home page and Nav components were functional stateless components that we used primarily for displaying content for the user and provide helpful navigation.
Did you use any container components? What for? We didn't use any container components (except App.js which is a container component for other components we created). Customers component would have a potential to become a container component if we implemented Customer component representing each customer that we had.
Do you have any recommendations on how we could improve this project for the next cohort? Though we figured it out without guidance, in future it might be beneficial to provide some hints as to what technologies (like axios) we would need to review. It was especially challenging to work on this project after we spent a couple of months working with Rails.

RebeccaRoach and others added 30 commits June 22, 2020 11:26
…d movie, and updating both variables with setState
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