Giter VIP home page Giter VIP logo

react-fetch-and-render-data-exercise's Introduction

Impressionist Artworks at The Art Institute of Chicago

Overview

Impressionist Artworks at The Art Institute of Chicago is a coding challenge for MIT xPRO Front-End Development with React program.

This exercise has the following goals:

  • Fetch, and render data from external source with React
  • Have practice with Axios library
  • Have practice with useEffect and useReducer React hooks
  • Create client-side pagination

The data for this project is retrieved from Art Institute of Chicago API.

Features

Impressionist Artworks at The Art Institute of Chicago project has the following features:

  • Users are able to select impressionist artists from dropdown list
  • List of artworks for selected artist is downloaded using Art Institute of Chicago API
  • Images are downloaded using
  • Data is paginated with one artwork per page
  • For each artwork, title and image are displayed
  • Each artwork's title is a link to the page with more detailed information about the artwork

image

API Calls

To get the list of artworks for an artist, the following API query is used:

https://api.artic.edu/api/v1/artworks/search?q={artist}&&fields=id,title,image_id

The response looks like this:

"data": [
  {
    "_score": 254.86807,
    "id": 16568,
    "image_id": "3c27b499-af56-f0d5-93b5-a7f2f1ad5813",
    "title": "Water Lilies"
  }
]

To get images, the following URL is used:

https://www.artic.edu/iiif/2/{image_id}/full/843,/0/default.jpg

Getting Started

To run the project locally,

  1. Clone this repo.
  2. cd into current directory.
  3. Run index.html on local server.

react-fetch-and-render-data-exercise's People

Contributors

alexandrabaturina avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

tung1404

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.