Giter VIP home page Giter VIP logo

marurevi / tasty-recipes-api Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 18.38 MB

We built our own web application based on an external API. We selected an API that provides data about food recipies. The webapp has 2 user interfaces: A home page showing a list of items that you can "like." A popup window with more data about an item that you can use to comment on it

HTML 14.04% JavaScript 53.64% CSS 32.32%

tasty-recipes-api's Introduction

Hi ๐Ÿ‘‹, I'm Mariana

A newby developer from Argentina always looking for new opportunities.

"It's not just about ideas. It's about making ideas happen" Let's do it!!! ๐Ÿš€

marurevi

๐Ÿ’ฌ Ask me about JavaScrip, Python | ๐Ÿ“ซ How to reach me [email protected]

Portfolio: See some of my work here

Connect with me:

@marurevilla mariana-revilla-lerida mariana-revilla-lerida

Languages and Tools:

Frontend

React Bootstrap CSS3 HTML5 JavaScript Illustrator Redux Git Tailwind CSS Material UI Adobe InDesign Styled Components Photoshop Jest Webpack NextJS

Backend

JavaScript Linux Git Ruby PostgreSQL Ruby on Rails

marurevi :: Top Langs

marurevi :: Profile Stats

marurevi

tasty-recipes-api's People

Contributors

devmahmoud avatar marurevi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

devmahmoud

tasty-recipes-api's Issues

2022-05-19 Peer code review

After a 5-minute code review, I have two observations:

  1. Your code looks pretty good.
  • You are using modules
  • You don't have loose sentences outside of functions.
  1. I noticed that you are frequently using for-loops with index i (i.e. for (let i = 0; i < comments.length; i += 1) { }).
  • This is not a bad practice, but it requires to use the index with the array.
  • It would be good to explore other variants of the for-loop. For example:
  • Replace for (let i = 0; i < comments.length; i += 1) { } by comments.forEach((comment) => { });.
    • Instead of comments[i].fieldX you will do comment.fieldX. (No need for a reference to the array, or the index).
    • In each iteration over the comments array, the comment parameter will be a new element of the array.
    • If you need the index for another reason, you may include it as the second parameter to the call-back function. For example: comments.forEach((comment, index) => { });

[3pt] - Add comments counter - Student B

Even if the API gives you the number of comments you will create a specific function to calculate it.

Make sure that the correct number is displayed on the Comments pop up.

[4pt] - Display list of items on the Homepage - Student A

Create the main part of the homepage that keeps the layout from the wireframe:

Screenshot 2021-06-27 at 21 50 23

When the page loads, the webapp retrieves data from the selected API and shows the list of items on screen with the basic data (e.g. title + image).

Prepare also "Comments" and "Reservations" buttons. They should be doing nothing - just being displayed.

This task does not include displaying the number of likes for each item.

This task does not include the counter of the items.

[4pt] -Display Comments pop up with selected item's details - Student B

Create a comments popup only with the top section (displaying details of the selected item)

Screenshot 2021-06-27 at 22 10 45

When the popup loads, the webapp retrieves data from the selected API and shows details about the selected item.

Add event to button prepared by your teammate that will open your popup. You need to communicate with your team member to make sure that you do not block each other (most likely the easiest solution is to merge the list of items feature to the dev branch before you try to add that event).

[0.5pt] Find external API - group task

Find an API to 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.
    choose an APIs that doesn't need authentication. if you select an API that requires authentication, you should implement it on your own. Also, if you select an API that provides image resources your webapp will be more visual.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.