eastjun-dev / frontend

MIT License
2 stars 4 forks source link

[200109] mission004 #9

Open eastjun-dev opened 4 years ago

eastjun-dev commented 4 years ago

template version


๐Ÿ”ฅ Movie List ์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ



image

๊ธฐ๋ณธ ์š”๊ตฌ์‚ฌํ•ญ

1. ๋ฉ”์ธ ํ™”๋ฉด์„ ๊ตฌํ˜„ํ•œ๋‹ค.

2. ์˜ํ™” ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•œ๋‹ค.

image

3. ์˜ํ™” ์ƒ์„ธ ํŽ˜์ด์ง€๋ฅผ ๊ตฌํ˜„ํ•œ๋‹ค.


์ถ”๊ฐ€ ์š”๊ตฌ์‚ฌํ•ญ

1. ๋ฉ”์ธ ํ™”๋ฉด ์Šคํฌ๋กค ํ›„, ์ƒ์„ธํŽ˜์ด์ง€๋ฅผ ๋‹ค๋…€์™”์„ ๋•Œ, ๋ฉ”์ธ ํ™”๋ฉด์—์„œ์˜ ์Šคํฌ๋กค ์œ„์น˜ ๊ธฐ์–ตํ•˜๊ธฐ



API ์‚ฌ์šฉ ๋ฐฉ๋ฒ•

Movie List ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

Query String

{
  api_key(requirement) : ์ œ ๊ฐœ์ธ API Key ๋ฐœ๊ธ‰๋ฐ›์•„ ๋„ฃ์—ˆ์Šต๋‹ˆ๋‹ค
  language(Optional) : ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค
  reigion(Optional) : ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค
  page(Optional) : ํŽ˜์ด์ง€ ๋„˜๋ฒ„์ž…๋‹ˆ๋‹ค. infinity scroll ๊ตฌํ˜„์„ ์œ„ํ•ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. 
}

Json Data

{
  {
    "page": 1,
    "results": [
      {
        "poster_path": ํฌ์Šคํ„ฐ ์ฃผ์†Œ(string)
        "adult": ์„ฑ์ธ๋ฌผ ์—ฌ๋ถ€(boolean)
        "overview": ํ•œ์ค„ ์š”์•ฝ(string)
       "release_date": ์˜ํ™” ๋ฆด๋ฆฌ์ฆˆ ๋‚ ์งœ(string)
        "genre_ids": ์žฅ๋ฅด id ์ˆซ์ž ๋ฐฐ์—ด(number[])
        "id": ์•„์ด๋””(number)
        "original_title": ์˜ํ™” ์˜ค๋ฆฌ์ง€๋„ ํƒ€์ดํ‹€(string)
        "original_language": ์–ธ์–ด(string)
        **"title": ์˜ํ™” ํƒ€์ดํ‹€(string)**
        "backdrop_path": ๋ฐฐ๊ฒฝ์ด๋ฏธ์ง€ ์ฃผ์†Œ(string)
        "popularity": ์ธ๊ธฐ๋„ (number)
        "vote_count": ํˆฌํ‘œ์ˆ˜ (number)
        "video": ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋น„๋””์˜ค๊ฐ€ ์žˆ๋Š”๊ฐ€ ์—ฌ๋ถ€(boolean)
        "vote_average": ํˆฌํ‘œ ํ‰๊ท (number)
      },
     ...
     ]
   }
 }


Movie Detail ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

Query String

{
  api_key(requirement) : ์ œ ๊ฐœ์ธ API Key ๋ฐœ๊ธ‰๋ฐ›์•„ ๋„ฃ์—ˆ์Šต๋‹ˆ๋‹ค
  language(Optional) : ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค
  append_to_response(Optional) : ์ •ํ™•ํžˆ ๋ชจ๋ฅด๊ฒ ์œผ๋‚˜.. ์‹ ๊ฒฝ์“ฐ์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค
}

Json Data

{
  {
  "adult": false,
  "backdrop_path": "/8HqSxB9VLJkbRXRdlocbLq9wxwY.jpg",
  "belongs_to_collection": {
    "id": 141290,
    "name": "The Lord of the Rings Animated Collection",
    "poster_path": "/pQuazFOlGRdn2Lb3oWFJYPeASOc.jpg",
    "backdrop_path": "/uUG532EWfyhtKDzsA0sLb1PsHhL.jpg"
  },
  "budget": 4000000,
  "genres": [
    {
      "id": 12,
      "name": "Adventure"
    },
    {
      "id": 16,
      "name": "Animation"
    },
    {
      "id": 18,
      "name": "Drama"
    },
    {
      "id": 14,
      "name": "Fantasy"
    },
    {
      "id": 10751,
      "name": "Family"
    }
  ],
  "homepage": null,
  "id": 123,
  "imdb_id": "tt0077869",
  "original_language": "en",
  "original_title": "The Lord of the Rings",
  "overview": "The Fellowship of the Ring embark on a journey to destroy the One Ring and end Sauron's reign over Middle-earth.",
  "popularity": 13.134,
  "poster_path": "/1l3WpoF7TX9pOprX4XepCXjQXUV.jpg",
  "production_companies": [
    {
      "id": 60,
      "logo_path": "/oJXpAs4I3W46e4dkaOEzCa4yBko.png",
      "name": "United Artists",
      "origin_country": "US"
    },
    {
      "id": 286,
      "logo_path": null,
      "name": "Fantasy Films",
      "origin_country": ""
    }
  ],
  "production_countries": [
    {
      "iso_3166_1": "US",
      "name": "United States of America"
    }
  ],
  "release_date": "1978-11-15",
  "revenue": 30471420,
  "runtime": 132,
  "spoken_languages": [
    {
      "iso_639_1": "en",
      "name": "English"
    }
  ],
  "status": "Released",
  "tagline": "Fantasy...beyond your imagination",
  "title": "The Lord of the Rings",
  "video": false,
  "vote_average": 6.5,
  "vote_count": 391
}
 }



๐Ÿ‘จโ€๐Ÿ’ป Reviewer Match ๐Ÿ‘ฉโ€๐Ÿ’ป

@eastjun

@YongHoonJJo @StellaKim1230 @ganeodolu

@YongHoonJJo

@StellaKim1230 @ganeodolu @s280493

@StellaKim1230

@ganeodolu @s280493 @eastjun

@ganeodolu

@s280493 @eastjun @YongHoonJJo

@s280493

@eastjun @YongHoonJJo @StellaKim1230

ganeodolu commented 4 years ago

detail.html์˜ ์ด๋ฏธ์ง€๊ฒฝ๋กœ ์˜ˆ์‹œ๋ฅผ ๋‚˜์ค‘์— ๋ฐœ๊ฒฌํ•˜์—ฌ ์ข€ ํ—ค๋งธ๋Š”๋ฐ api ๊ฒฐ๊ณผ๊ฐ’์˜ ์ด๋ฏธ์ง€ ๊ฒฝ๋กœ๊ฐ€ ํ•˜์œ„๊ฒฝ๋กœ๋งŒ ํ‘œ์‹œ๋˜์–ด์žˆ์–ด์š”. ์•ž์— https://image.tmdb.org/t/p/w500 ๋ฅผ ๋ถ™์—ฌ์ฃผ์‹œ๋ฉด ์ •์ƒ์ ์œผ๋กœ ๋‚˜์˜ค๋‹ˆ ์ฐธ๊ณ ํ•˜์„ธ์š”. :metal: ์˜ˆ์‹œ : https://image.tmdb.org/t/p/w500/kqjL17yufvn9OVLyXYpvtyrFfak.jpg ์ฐธ๊ณ  : https://developers.themoviedb.org/3/getting-started/images

๊ทธ๋ฆฌ๊ณ  ์˜ํ™”๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ์„ ์ด์šฉ์‹œ API๋ฅผ ์•„๋ž˜์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•˜์‹œ๋ฉด ๋ผ์š”. https://api.themoviedb.org/3/search/movie?api_key=9c75b9a50b9510e81c6bc16c1a41517c&language=en-US&query=๊ฒ€์ƒ‰์–ด&page=1 ์ฐธ๊ณ  : https://developers.themoviedb.org/3/search/search-movies