Git Product home page Git Product logo

artworks's Introduction

Today's Artwork

์˜ค๋Š˜์˜ ๋ฏธ์ˆ ์ž‘ํ’ˆ์„ ํ๋ ˆ์ดํŒ…ํ•ด์ฃผ๋Š” ํŽ˜์ด์ง€์ž…๋‹ˆ๋‹ค.


์„ค์น˜ ๋ฐ ์‹คํ–‰

yarn start ํ”„๋กœ์ ํŠธ ๋ฃจํŠธ ํด๋”์—์„œ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

์„ค๊ณ„

๋ฉ”์ธ ํ™”๋ฉด์—๋Š” ์˜ค๋Š˜์˜ ์ž‘ํ’ˆ์ด ๋ณด์ด๊ณ , ์ตœ๊ทผ๋ชฉ๋กํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋ฉด ์ตœ๊ทผ 4์ผ๊ฐ„์˜ ์ž‘ํ’ˆ์ด ๋ณด์ž…๋‹ˆ๋‹ค.

๋ฉ”์ธ

๋ฏธ์ˆ ์ž‘ํ’ˆ์˜ id ๊ธฐ์ค€์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๋ฉฐ, ์˜ฌํ•ด์˜ ๋‚ ์งœ๋Š” ํ•˜๋‚˜์˜ id์™€ ๋งคํ•‘๋ฉ๋‹ˆ๋‹ค.

์‚ฌ์šฉ ๊ธฐ์ˆ 

  • React
  • Tailwindcss
  • CRA
  • Typescript
  • react-query
  • headlessui
  • react-dom
  • sheet.best

ํŠธ๋Ÿฌ๋ธ”์ŠˆํŒ…

ํ•ด์‹ฑ

์ดˆ๊ธฐ ํ•ด์‹ฑ ์•„์ด๋””์–ด

  • ๋ฏธ์ˆ ์ž‘ํ’ˆ์€ ์ตœ๋Œ€๊ฐ’์ด 871891์ธ object id๋ฅผ ๊ฐ€์ง„๋‹ค.
  • 1๋…„ ๋™์•ˆ์—๋Š” unique hash ๊ฐ’์„ ๊ฐ€์ง€๋„๋ก ํ•˜์ž.
  • ์˜ค๋Š˜์˜ ๋‚ ์งœ๋ฅผ ํ† ๋Œ€๋กœ 6์ž๋ฆฌ hash ๊ฐ’์„ ๋ฝ‘์•„๋‚ด์ž.

์ดˆ๊ธฐ ์•„์ด๋””์–ด์˜ ๋ฌธ์ œ์ 

  • object id๊ฐ€ 6์ž๋ฆฌ๊ฐ€ ์•„๋‹Œ ๋ฏธ์ˆ ์ž‘ํ’ˆ์€ ์ ˆ๋Œ€ ๋‚˜์˜ค์ง€ ์•Š๋Š”๋‹ค.
  • object id๋Š” ์—ฐ์†ํ•จ์ˆ˜๊ฐ€ ์•„๋‹ˆ๋‹ค. ์ฆ‰, ๋ฝ‘์•„๋‚ธ hash๊ฐ’์ด object id์ค‘์— ์—†์„ ์ˆ˜๋„ ์žˆ๋‹ค.
  • ์„ค๋ช…, ์ •๋ณด๊ฐ€ ๋ถ€์‹คํ•œ ์ž‘ํ’ˆ์ด ๋‚˜์˜ฌ ์ˆ˜๋„ ์žˆ๋‹ค.
    • ํผ๋ธ”๋ฆญ ๋„๋ฉ”์ธ์ด ์•„๋‹ˆ๋ผ๋ฉด ์ด๋ฏธ์ง€๋ฅผ ์ œ๊ณตํ•˜์ง€ ๋ชปํ• ์ˆ˜๋„ ์žˆ๋‹ค. ์ฆ‰, ์œ ๋ช…ํ•œ ์ž‘ํ’ˆ์ด์–ด๋„ ์ด๋ฏธ์ง€๊ฐ€ ๋‚˜์˜ค์ง€ ์•Š๋Š” ์‚ฌ์ง„์ด ์žˆ๋‹ค!(isPublicDomain,hasImages ์†์„ฑ์œผ๋กœ ํ•„ํ„ฐ๋ง ๊ฐ€๋Šฅ)
    • The API (RESTful web service in JSON format) gives access to all of The Metโ€™s Open Access data and to corresponding high resolution images (JPEG format) that are in the public domain.(https://www.metmuseum.org/art/collection/search/437133)

api์˜ ์ถ”๊ฐ€ ๋ฌธ์ œ์ 

  • query string๊ณผ ๋‹ค๋ฅธ ํ•ญ๋ชฉ ํ•˜๋‚˜ ์กฐํ•ฉ๋งŒ ํ—ˆ์šฉํ•˜๊ณ , ์กฐ๊ฑด 2๊ฐœ์ด์ƒ์˜ ๊ฒ€์ƒ‰์„ ํ—ˆ์šฉํ•˜์ง€ ์•Š๋Š”๋‹ค.

๋Œ€์•ˆ

  • ๋žœ๋คํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด 404 ๋œจ๋ฉด ์žฌํƒ์ƒ‰ํ•ด์„œ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๋ฐฉ์‹์œผ๋กœ ์ฒ˜๋ฆฌํ•œ๋‹ค. -> ๊ทธ๋ ‡๊ฒŒ ๋˜๋ฉด ์˜ค๋Š˜์˜ ์ž‘ํ’ˆ์ด๋ผ๊ธฐ๋ณด๋‹จ ์‚ฌ์ดํŠธ์— ์ ‘์†ํ•  ๋•Œ๋งˆ๋‹ค ๊ฒฐ๊ณผ๊ฐ€ ๋‹ฌ๋ผ์ง„๋‹ค.
  • ๋‚ ์งœ๋ณ„๋กœ ์ ์ ˆํ•œ object id๋ฅผ ํ•„ํ„ฐ๋งํ•ด๋‘๊ณ  curationํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ณ€๊ฒฝํ•œ๋‹ค. -> ๋…ธ๊ฐ€๋‹ค์ด๊ธด ํ•˜์ง€๋งŒ ๊ดœ์ฐฎ์€ ๋ฏธ์ˆ ์ž‘ํ’ˆ์„ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ๋‹ค.

์žฅ๊ธฐ ๋Œ€์•ˆ

  • DB์— valid artwork์˜ ์ง‘ํ•ฉ์„ ๋งŒ๋“ค์–ด๋‘๊ณ  ๊ทธ ์•ˆ์—์„œ ๋žœ๋ค์„ฑ์„ ๊ฐ€์ง€๊ฒŒ ํ•˜๊ธฐ

artworks's People

Contributors

tinajeong avatar

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.