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

Laravel + Auth0 + Stripe でECサイトを作ってみた

Laravel + Auth0 + Stripe でECサイトを作ってみた

Laravel + Auth0 + Stripe でECサイトを作ってみた

Takayuki

May 06, 2019
Tweet

More Decks by Takayuki

Other Decks in Programming

Transcript

  1. Copyright Re:Build.inc All Rights Reserved. 1.ձࣾ঺հ ◆ձ໊ࣾ גࣜձࣾRe:Build ◆ॅॴ ԭೄݝԭೄࢢதԝ̍ஸ໨̍̒−̕

    ◆ࣄۀ಺༰ ɾࣗࣾWEBαʔϏεͷاըɾ։ൃɻ ɾडୗ։ൃ ◆ࣾһ 5໊ ◆ΤϯδχΞͷಇ͖ํ ϦϞʔτϫʔΫՄೳͳࣗ༝ͳಇ͖ํΛਪ঑ͯ͠·͢ʂ
  2. 7 Auth0ͱ͸ ɾ֓ཁ Auth0͸WebΞϓϦ΍ϞόΠϧɺAPIͳͲ ʹରͯ͠ೝূɾೝՄͷαʔϏεΛΫϥ΢υ Ͱఏڙ͍ͯ͠Δɺ͍ΘΏΔIDaaS (Identity as a Service)ϕϯμʔͰ͢ɻ

    ɾΦεεϝͷํ اۀ͕΋ͭWebΞϓϦέʔγϣϯ΍API, Native Mobile AppͳͲͰϢʔβʔೝূ΍ ೝՄɺηΩϡϦςΟΛ૊ΈࠐΈ͍͚ͨΕ Ͳ΋࣮૷͕೉͍͠ɻ https://qiita.com/furuth/items/8826b66a3ec2b2b14222
  3. 8 ֤ݴޠ͝ͱͰνϡʔ τϦΞϧ͕ॆ࣮ͯ͠ ͓Γɺ؆୯ʹಋೖͰ ͖·͢ɻ ओཁͳSNSͱ΄ͱΜͲ࿈ ܞ͓ͯ͠Γɺ࿈ܞํ๏΋ ؆୯ͰศརͰ͢ɻ WebΞϓϦɺSPAΞϓϦωΠ ςΟϒΞϓϦͳͲʹ΋࿈ܞͰ

    ͖ͯɺϢʔβ৘ใΛҰݩ؅ཧ ΋Ͱ͖Δɻ ؆୯ʹಋೖͰ͖Δ ϢʔβೝূΛҰݩ؅ཧͰ ͖Δ ϝϦοτɾಛ௃ ๛෋ͳ࿈ܞઌ 2 ʙϝϦοτʙ 1 3
  4. 1 6 खॱ ᶃAuth0ͷ؅ཧը໘ͰΞϓϦέʔγϣϯͷઃఆΛߦ͏ɻ ᶄLaravelΛΠϯετʔϧ ᶅcomposer require auth0/login:”~5.0" Λ࣮ߦ ᶆLoginServiceProviderΛઃఆ

    ᶇphp artisan vendor:publishΛ࣮ߦ ᶈ.envΛฤू ᶉroutes/api.phpΛฤू ᶊίϯτϩʔϥΛ࡞੒ ᶋconfig/auth.phpΛฤू ᶌbladeϑΝΠϧΛฤू
  5. WWW.SITE2MAX.PRO Free PowerPoint & KeyNote Templates 4 DEMO EC Site

    EC Site https://murmuring-tor-53965.herokuapp.com/