Upgrade to Pro — share decks privately, control downloads, hide ads and more …

App_workshop_20190925.pdf

877f92a3597118cda2715790fa170ad4?s=47 Junichi Okamura
September 19, 2019
200

 App_workshop_20190925.pdf

877f92a3597118cda2715790fa170ad4?s=128

Junichi Okamura

September 19, 2019
Tweet

Transcript

  1. #shopifyjpmeetup ։ൃऀऀ޲͚ ΞϓϦϫʔΫγϣοϓ

  2. • Junichi Okamura, Technical Partner Manager at Shopify • @benzookapi

    • API Lover/Midnight Developer/MANGA Creator/Beer Lover/App Hacker Who am I?
  3. • Shopifyͱ͸ʁʢ௒؆୯ʹʣ • ShopifyύʔτφʔϓϩάϥϜͱ͸ʢ௒؆୯ʹʣ • ύʔτφʔΞΧ΢ϯτͱ։ൃετΞͷηοτΞοϓʢ΍΍؆୯ʹʣ • ShopifyΞϓϦͱ͸ʢ؆୯ʹʣ • νϡʔτϦΞϧΛ࢖ͬͨαϯϓϧΞϓϦͷ࡞੒ʢ΍΍ஸೡʹʣ

    • UI෦඼PolarisͱͦͷଞϥΠϒϥϦɺπʔϧʹ͍ͭͯʢؤுΓ·͢ʣ • ωΫετΞΫγϣϯɺࢀߟࢿྉʢؤு͍ͬͯͩ͘͞ʂʣ • Q&AɺΞϯέʔτɺަྲྀձ ʢWith Beer!ʣ ຊ೔ͷ಺༰ʢॳ৺ऀ޲͚Ͱ͢ʣ ϋογϡλά͸ #shopifyjpmeetup !
  4. Make Commerce Better For Everyone

  5. Shopify͸Ϋϥ΢υϕʔεͷΦϜχνϟωϧΛ࣮ݱͨ͠ϓϥοτϑΥʔϜͰ͢ɻ ݸਓͷํ͔Βେاۀ·Ͱ҆৺ͯ͠͝ར༻͍͚ͨͩ·͢ɻ 2006 Shopifyϩʔϯν $1,073M ೥ؒརӹֹ (աڈ12ϱ݄) 2,900+ ΞϓϦετΞʹެ։͞Ε͍ͯΔΞϓϦͷ਺ $100B

    ࣄۀऀ༷ͷ૯ྲྀ௨ֹ (ྦྷܭ) 2.1 million ϢχʔΫͷετΞΞΧ΢ϯτ਺ 820,000+ ళฮ —— ~175ϱࠃ 4,000+ ࣾһ਺ 22,000 աڈ12Χ݄ͷؒͰ1ళฮҎ্ͷShopifyετΞΛ
 ϦϦʔεͨ͠ύʔτφʔͷ਺ #shopifyjpmeetup
  6. +300% 2017೥͔Βͷళฮ਺੒௕཰ ೔ຊ #shopifyjpmeetup

  7. • Ϛϧννϟωϧൢച • όοΫΦϑΟεޮ཰Խػೳ •֦ுੑͷߴ͍ج൫ͱՁ֨ • σβΠϯςϯϓϨʔτͷॆ࣮ • ݎ࿚Ͱ҆৺҆શͳΠϯϑϥج൫ Shopifyͷಛ௕

    ύʔτφʔΤίγεςϜ
  8. ShopifyύʔτφʔΤίγεςϜ Ϛʔνϟϯτ͕ αʔυύʔςΟʔ ΞϓϦΛར༻ 80%+ ύʔτφʔ͔Βͷ঺հ Ϛʔνϟϯτ 200,000+ Shopifyύʔτφʔ͕ಘͨऩӹ͸ 1,320ԯԁ

    (2018೥౓) ΞϓϦ։ൃύʔτφʔ͕ ಘͨऩӹ͸ 200ԯԁ (2018೥౓)
  9. ύʔτφʔ؅ཧը໘ΑΓετΞߏங ߏஙத͸Shopifyͷར༻ྉ0ԁɻࣾ಺༻σϞετΞ΋͝༻ҙɻ σϕϩούʔϓϨϏϡʔͰඇެ։ͷShopify࠷৽ػೳͷ͓ࢼ͕͠Մೳɻ APIͰΧελϚΠζ΍ΞϓϦɾςʔϚͷൢച ։ൃऀ޲͚υΩϡϝϯτΛ๛෋ʹ͝༻ҙɻ ShopifyΞΧσϛʔͷແྉडߨ Shopifyύʔτφʔʹఏڙ͞ΕΔΦϯϥΠϯτϨʔχϯά͓ΑͼೝఆϓϩάϥϜɻ ShopifyύʔτφʔϓϩάϥϜ

  10. ετΞߏஙύʔτφʔ ΫϥΠΞϯτͷֹ݄ར༻ྉ20%Λຖ݄ಘΔ͜ͱ͕Մೳɻ ঺հύʔτφʔ ΫϥΠΞϯτͷֹ݄ར༻ྉ͔݄̎෼ΛγϣοτͰಘΔ͜ͱ͕Մೳɻ ςʔϚσβΠϯύʔτφʔ ςʔϚετΞ্ͷച্͛ͷ࠷େ70%ΛಘΔ͜ͱ͕Մೳɻ ΞϓϦ։ൃύʔτφʔ ΞϓϦετΞ্ͷച্͛ͷ80%ΛಘΔ͜ͱ͕Մೳɻ Shopifyύʔτφ޲͚ϨϕχϡʔγΣΞ

  11. Bold Commerce - ΞϓϦ։ൃύʔτφʔ 2012೥ʹ༑ਓ4ਓͰShopifyΞϓϦͷ։ൃΛ࢝Ίɺ ࠷ॳʹެ։ͨ͠ΞϓϦʮBold Upsellʯ͕େώοτͨ͜͠ͱΛ͖͔͚ͬʹ ຊ֨తʹShopifyͷΞϓϦΛ։ൃ͠·ͨ͠ɻ ݱࡏɺ20Ҏ্ͷύϒϦοΫΞϓϦͱԿඦ΋ͷϓϥΠϕʔτΞϓϦΛ։ൃ͠ɺ ߹ܭ100,000Ҏ্ͷେखاۀؚΜͩސ٬͕ΞϓϦΛ࢖༻͓ͯ͠Γ·͢ɻ

    ࠓ͸250ਓͷैۀһΛ๊͑ɺड৆ܦݧͷ͋Δاۀʹ·Ͱ੒௕͠ɺ ஍ݩͷΧφμͷϚχτόभͰ͸࠷΋ૣ͘੒௕Λ਱͛ͨITاۀͱͳΓ·ͨ͠ɻ Shopifyύʔτφʔͷ੒ޭࣄྫ
  12. Shopify ςʔϚετΞ 100छྨҎ্ͷσβΠϯςϯϓϨʔτ https://themes.shopify.com

  13. 2,900+ ެ։͞Ε͍ͯΔAPIͰࣗ༝ʹΧελϚΠζ΍ΞϓϦͷ࡞੒͕Մೳ ച্Ξοϓ ഑ૹ ࡏݿ؅ཧ ސ٬؅ཧ ࡒ຿ɾձܭ ଟݴޠɾଟ௨՟ Ϩϙʔτ ιʔγϟϧ

    ϚʔέςΟϯά Shopify ΞϓϦετΞ https://apps.shopify.com/?locale=ja
  14. ͍ͯ͞Α͍ΑϋϯζΦϯʂ #shopifyjpmeetup ʢੵۃతʹG◦ogleઌੜͷྗΛआΓ͍͖ͯ·͢ʣ

  15. ύʔτφʔΞΧ΢ϯτͷ࡞੒ #shopifyjpmeetup Shopify ύʔτφʔ https://www.shopify.jp/partners

  16. ։ൃετΞͷ࡞੒ #shopifyjpmeetup

  17. ։ൃετΞ΁ϩάΠϯ #shopifyjpmeetup

  18. ΞϓϦͱ͸ʁ #shopifyjpmeetup Shopify app https://help.shopify.com/ja/partners/making-apps

  19. Α͘Θ͔Βͳ͍ͷͰ࡞ͬͯΈΑ͏ #shopifyjpmeetup Shopify app νϡʔτϦΞϧ https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react?locale=ja

  20. ΞϓϦ։ൃखॱᶃɿඞཁͳٕज़ɺ༻ޠͷ੔ཧ #shopifyjpmeetup HTMLɺCSSɺJavaScriptɺJSONɺΫΤϦͳͲͷཧղ͸ඞਢͰ͢ɻ ࿅शɿ
 ֤༻ޠΛࣗ෼ͷݴ༿Ͱ આ໌ͯ͠ΈΑ͏

  21. ΞϓϦ։ൃखॱᶄɿ؀ڥઃఆͱॳظঢ়ଶͷΞϓϦͷ࡞੒ #shopifyjpmeetup ίϚϯυϥΠϯπʔϧ΍ඞཁϥΠϒϥϦͷΠϯετʔϧͱىಈ֬ೝ ࿅शɿ
 ίϐϖͰ͍͍ͷͰ࠷ޙ ͷ෦෼·ͰͨͲΓண͍ ͯΈΑ͏

  22. ΞϓϦ։ൃखॱᶅɿAPIೝূͱΞϓϦͷΠϯετʔϧ #shopifyjpmeetup OAuth༻ͷೝূ৘ใͱετΞ΁ͷΞϓϦΠϯετʔϧʢύʔϛογϣϯ෇༩ʣ ࿅शɿ
 ίϐϖͰ͍͍ͷͰ࠷ޙ ͷ෦෼·ͰͨͲΓண͍ ͯΈΑ͏

  23. ΞϓϦ։ൃखॱᶆɿPolarisΛ࢖ͬͯUIߏங #shopifyjpmeetup ετΞ؅ཧը໘ʹࣗ෼ࣗ਎ͷShopifyΆ͍ը໘ΛຒΊࠐΈ·͢ ࿅शɿ
 Ͱ͖Δͱ͜Ζ·Ͱը໘ Λ࡞ͬͯΈΑ͏ʢ̍ͭ Ͱ΋OK)

  24. Polarisʁʁʁ #shopifyjpmeetup https://polaris.shopify.com/ Shopify polaris ʹཁ͸B◦otstrap?

  25. ΞϓϦ։ൃखॱᶇɿAPIΛ࢖ͬͯσʔλΛૢ࡞ #shopifyjpmeetup GraphQL·ͨ͸REST APIΛ࢖ͬͯShopifyͷ΄΅શͯͷσʔλΛૢ࡞Ͱ͖·͢

  26. GraphQLʁʁʁ #shopifyjpmeetup ฏͨ͘ݴ͏ͱSQLͱJSONͷ͍͍ͱ͜औΓͨ͠Α͏ͳAPIͰ͢ ࿅शɿ
 GraphQL AppͰΫΤϦ Λ࣮ߦͯ͠ΈΑ͏ ※લϖʔδͷʮGraphQL Explorerʯ ͔ΒભҠͰ͖·͢

    GraphQLͱ͸
  27. GraphQL > REST #shopifyjpmeetup ࠓޙ͸GraphQL͕ਪ঑ʹͳΓ·͕͢ɺซ༻΋ՄೳͰ͢ > Shopify api

  28. Ҏ্͕ΞϓϦ։ൃͷ࠷௿ඞཁखॱͰ͢ #shopifyjpmeetup ࢒Γ͸ͥͻ͓͏ͪʹؼͬͯWebhookͷষ·ͰͨͲΓண͍͍ͯͩ͘͞

  29. Webhookʁʁʁ #shopifyjpmeetup Shopifyͷओͳσʔλͷ௥Ճɺߋ৽ɺ࡟আͷΠϕϯτͷ৘ใΛ௨஌ͯ͘͠ΕΔػೳͰ͢ ࿅शɿ
 Կ͔̍ͭWebhookΛ௥ Ճͯ͠ΈΑ͏ ※ʮઃఆʯ> ʮ௨஌ʯ > ʮWebhookʯ

    ͔ΒઃఆͰ͖·͢ Webhookͱ͸
  30. ิ଍ᶃɿศརͳίϚϯυπʔϧ Shopify App CLI #shopifyjpmeetup ࠓ೔ख࡞ۀͰ࡞ͬͨϑΝΠϧΛࣗಈੜ੒ɺىಈఀࢭɺHerokuσϓϩΠ·Ͱʂ https://github.com/Shopify/shopify-app-cli Shopify app CLI

  31. ิ଍ᶄɿPOSΞϓϦ΋࡞ΕΔΠϯλϑΣʔεApp Bridge #shopifyjpmeetup Shopify؅ཧը໘ٴͼPOSΞϓϦʹϝχϡʔ΍ΠϕϯτΛೖΕΔJSϥΠϒϥϦ https://help.shopify.com/en/api/embedded-apps/app-bridge Shopify app bridge ※Shopify POS

    App SDKͱShopify Embedded App SDK͸ App Bridgeʹ౷߹͞Ε·ͨ͠
  32. ωΫετΞΫγϣϯ #shopifyjpmeetup ΋ͬͱཧղΛਂΊ͍ͨํɿ => ؤுͬͯӳޠͷυΩϡϝϯτΛಡΜͰͲΜͲΜखΛಈ͔ͦ͏ʂ Կ͔࣭໰͕ग़͖ͯͨΒʁɿ => ೔ຊޠͷϑΥʔϥϜͰ೔ຊޠͰ࣭໰ͯ͠ΈΑ͏ʂ https://help.shopify.com/en/api/getting-started https://community.shopify.com/c/Shopify-Community-Japan/ct-p/jp

  33. Shopify Japan Community #shopifyjpmeetup https://www.facebook.com/groups/218016361970323/ ϢʔβʔओମͷίϛϡχςΟɿ => ଞͷ஥ؒͱͭͳ͕ͬͯ৘ใަ׵ͯ͠ΈΑ͏ʂ

  34. Shopify App Store #shopifyjpmeetup https://help.shopify.com/en/api/app-store/listing-in-the-app-store/app-submission ΞϓϦͷਃ੥खॱɿ => ࡞ͬͨΞϓϦΛετΞʹਃ੥ͯ͠ΈΑ͏ʂ

  35. Q&AɺΞϯέʔτʢ౴͑ͯͶʂʣ #shopifyjpmeetup

  36. #shopifyjpmeetup Thank you!