Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final project submition #13

Merged
merged 60 commits into from Jan 8, 2022
Merged

Final project submition #13

merged 60 commits into from Jan 8, 2022

Conversation

Hombre2014
Copy link
Owner

This is the final project pull request where all the requirements for the project have been implemented as follow:

Description

The JavaScript capstone project is about building your own web application based on an external API. You will select an API that provides data about a topic that you like and then build the webapp around it.

Video presentation

Video link

Live Demo

Live demo link

Requirements

APIs

  • First, you need to find an API so you can base the development of the webapp around it. The API should allow you to:
    • Get a list of items with a unique item id (or generate the unique id).
    • For a given item, get detailed information about it.
  • You will use our Involvement API to record the different user interactions (likes, comments and reservations).

Interfaces

  • You should build these interfaces:
    • The home page.
    • The comments popup.
  • You should follow the layout of the wireframes provided. You should personalize the rest of the design including colors, typographies, spacings, etc.
  • Home page
    • When the page loads, the webapp retrieves data from:
      • The selected API and shows the list of items on screen.
      • The Involvement API to show the item likes.
    • Remember that your page should make only 2 requests:
      • One to the base API.
      • And one to the Involvement API.
    • When the user clicks on the Like button of an item, the interaction is recorded in the Involvement API and the screen is updated.
    • When the user clicks on the "Comments" button, the Comments popup appears.
    • Home page header and navigation similar to the given mockup.
    • Home page footer similar to the given mockup.
  • Comments popup
    • When the popup loads, the webapp retrieves data from:
      • The selected API and shows details about the selected item.
      • The Involvement API to show the item comments.
    • When the user clicks on the "Comment" button, the data is recorded in the Involvement API and the screen is updated.

Counters

Counters We have counters in all the interfaces that show:

  • The number of items (home).
  • The number of comments (comments popup).

Technical set up

  • Set up the repository on GitHub and use Gitflow.
  • Set up webpack.
  • Set up a JavaScript testing library (Jest).

Copy link

@elisha2kyakpo1 elisha2kyakpo1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi team,

Great job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!

To highlight

  • All the tests are passing✔✔
  • The project uses async and await ✔✔
  • The project is almost complete✔✔

Required Changes ♻️

Check the comments under the review.

Optional suggestions

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

You can also consider:

  • We should make sure the PR description highlights what was done in the project.
    Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

src/comments.js Outdated
Comment on lines 10 to 12

export function displayComments(itemId) {
fetch(`https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/apps/1nLM5MTDuqVGBJxBgtuq/comments?item_id='${itemId}'`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's use ES6 syntax for functions, making use of the arrow functions

src/comments.js Outdated
Comment on lines 28 to 30

export function getComments(itemId) {
fetch(`https://us-central1-involvement-api.cloudfunctions.net/capstoneApi/apps/1nLM5MTDuqVGBJxBgtuq/comments?item_id='${itemId}'`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's use ES6 syntax for functions, making use of the arrow functions.

Comment on lines 1 to 2
export default function commentsCounter(movieComments) {
const commentsCounter = movieComments;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's use ES6 syntax for functions, making use of the arrow functions.

@github-pages github-pages bot temporarily deployed to github-pages January 8, 2022 13:06 Inactive
@Hombre2014
Copy link
Owner Author

Thanks for the review and suggestions.
We have implemented all the changes as follow:
Changes displayComments function from normal to ES6 arrow standard.
Changes getComments function from normal to ES6 arrow standard.
Changes commentsCounter function from normal to ES6 arrow standard.

Copy link

@EricMbouwe EricMbouwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @team,

Status: Approved ✔️

Excellent job on this project. Keep it up 👏
Your project is complete! There is nothing else to say other than... it's time to merge it 💪
Congratulations! 🎉

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@BonkeGcobo BonkeGcobo merged commit 6bb4cff into main Jan 8, 2022
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.

None yet

4 participants