Giter Club home page Giter Club logo

js_uw_module2's Introduction

Project overview

Art is my passion and painting is my hobby, however from time to time I am struggling to find my inspiration. Google and Pinterest make it sometimes much harder to find a good artwork example to get some ideas from.

So I came up with creating an artwork discovery website to be able to view art collections and filter out examples from the Metropolitan Museum of Art.

The project has:

  • The main page with several mediums (oils, watercolor, drawings).

  • The highlights page with several artworks made with the medium selected, and options for filtering.

  • Search results page.

Requirements

  • The project is a React application, bootstrapped with create-react-app
  • The React app is deployed with AWS Amplify onto a web server and publicly accessible https://art-demo.dzxsr30hnxwpv.amplifyapp.com
  • For this project I am calling the Metropolitan Museum of Art Collection API https://github.com/metmuseum/openaccess . There are API endpoints available for the following elements:
    • Objects: A listing of all valid Object IDs available for access.
    • Object: A record for an object, containing all open access data about that object, including its image (if the image is available under Open Access)
    • Departments: A listing of all valid departments, with their department ID and the department display name
    • Search: A listing of all Object IDs for objects that contain the search query within the object’s data

Challenges

  1. To get Highlights (inspirations) there is the only option to use search with some parameters. I decided to create a JSON file with a list of common words and within each medium search for a random word from that collection.

  2. I uncovered some inconsistency in the API behavior:

  • some ids returned by search can not be found by object API;
  • some objects do not have images;
  • in rare cases image URL returns ‘not found’.

To overcome this I introduced additional logic: I am trying to get more objects then I need and I filter out invalid ones.

What to improve

  • CSS.
  • Routing when search.

js_uw_module2's People

Contributors

github-classroom[bot] avatar

Watchers

Yulia Balenko avatar

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.