Git Product home page Git Product logo

art-app's Introduction

Art app

Description

React application using API from https://www.rijksmuseum.nl to fetch art objects and showcase information about artists and their work.

DEMO

Live DEMO at Github pages

Setup

TODO

  • Make search click re-route to index and reset list of suggestions.

  • If search on artist doesnt have artworks, show error text.

  • Removing search text completely resets search query.

  • Fix text color on artwork label

  • Work on styling

  • Add meta tags

  • Add artist reference in img title

  • Add rijksmuseum reference

  • Add error page

  • Add login with google

  • Add favorites, artworks

  • Add follow artist

  • Add random results, suggestion....

  /*========= Get random results =========/*

    data.count == 3396 ex.
    ps (amount of pics per page)
    p (page)

    pageMax = Math.floor(data.count / ps);

    p = random(pageMax)

Data flow

  • App fetches artworks data and holds it in state => Data is displayed in Main route.
  • Artwork button routes to ArtworkPage with selected id as param.
  • ArtworkPage fetches data by id on render and stores it with { useState } hook

.env

REACT_APP_BASE_URL="/"
REACT_APP_MASTER_KEY= { Your rijksmuseum apikey }
REACT_APP_RIJKS_URL="https://www.rijksmuseum.nl/api"

Other

  • Make sure to use process.env.REACT_APP_BASE_URL in front of every route link

art-app's People

Watchers

 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.