Skip to main content
View plugin on GitHub
See starters using this

gatsby-source-plugin-starbucks-kr-stocklist

This is gatsby-source-plugin that provides stock status for 2019 E-Frequency(summer stay kit) in S.Korea.

ํ•œ๊ตญ ์Šคํƒ€๋ฒ…์Šค์˜ 2019๋…„ ์—ฌ๋ฆ„ ์ธ๋จธ ์Šคํ…Œ์ด ํ‚ท ์žฌ๊ณ  ํ˜„ํ™ฉ์„ ์•Œ๋ ค์ฃผ๋Š” source plugin ์ž…๋‹ˆ๋‹ค.

Install ์„ค์น˜

$ npm i gatsby-source-plugin-starbucks-kr-stocklist
$ yarn add gatsby-source-plugin-starbucks-kr-stocklist

How to use ์‚ฌ์šฉ๋ฒ•

// gatsby-config.js
plugins: [
    'gatsby-source-plugin-starbucks-kr-stocklist'
]

// in case you want to push data to the algolia
plugins: [
    {
      resolve: `gatsby-source-plugin-starbucks-kr-stocklist`,
      options: {
        algolia: {
          appName: 'YOUR_APP_NAME',
          appSecret: 'YOUR_APP_SECRET',
          indexName: 'YOUR_INDEX_NAME',
        }
      }
    }
]

How to query

{
  allStocks {
    totalCount
    edges {
      node {
        STORE_CD // ๋งค์žฅ ๊ตฌ๋ถ„ ์•„์ด๋””
        address // ๋งค์žฅ ์ฃผ์†Œ
        sido_nm // ๋งค์žฅ์ด ์œ„์น˜ํ•œ ๋„, ๋„์‹œ
        gugun_nm // ๋งค์žฅ์ด ์œ„์ฐจํ•œ ๊ตฌ, ๊ตฐ
        store_nm // ๋งค์žฅ๋ช…
        TWENTY_COUNT // 20์ฃผ๋…„ ์„œ๋จธ ์Šคํ…Œ์ด ํ‚ท ์žฌ๊ณ 
        YELLOW_COUNT // ๋…ธ๋ž€์ƒ‰ ๋กœ๊ณ  ์„œ๋จธ ์Šคํ…Œ์ด ํ‚ท ์žฌ๊ณ 
        BEACH_COUNT // ๋น„์น˜ ์„œ๋จธ ์Šคํ…Œ์ด ํ‚ท ์žฌ๊ณ 
        GREEN_COUNT // ๊ทธ๋ฆฐ ๋กœ๊ณ  ์„œ๋จธ ์Šคํ…Œ์ด ํ‚ท ์žฌ๊ณ 
        TOTAL_COUNT // ์ด ์žฌ๊ณ 
      }
    }
  }
}

Docs
Tutorials
Plugins
Blog
Showcase