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

AngularJS 勉強会 #4 - 実戦!AngularJS

AngularJS 勉強会 #4 - 実戦!AngularJS

Makoto Sakata

December 03, 2013
Tweet

More Decks by Makoto Sakata

Other Decks in Technology

Transcript

  1. γεςϜˍਓһߏ੒ ❖ ৽ߏ੒ - ϞμϯSOA jsp! java servlet Legacy API

    (RPC) DB AngularJS App Node.js (REST) Legacy API (RPC) DB
  2. γεςϜˍਓһߏ੒ ❖ ਓһ AngularJS App Node.js (REST) Legacy API (RPC)

    DB UX σβΠφʔ Frontend JS ΤϯδχΞ Backend JS ΤϯδχΞ
  3. ͳΜͰAngularJSʁ (vs. Backbone.js) → ։ൃମ੍ͷεέʔϦϯά͕Ή͔͍ͣ͠ ❖ Backbone.js͸! ❖ ॊೈੑ͕ߴ͍! ❖

    ͦͷ൓໘ɺ։ൃऀͷྗྔͰίʔυ඼࣭͕͹Β͖ͭ΍͍͢! ❖ ίʔυͷϞδϡʔϧԽ΋։ൃऀ࣍ୈ

  4. ❖ AngularJS͸! ❖ ॊೈੑͰ͸Backbone.jsʹྼΔ͕…! ❖ Ϟδϡʔϧɾϕʔεͷ։ൃΛڧ੍ (࠶ར༻ੑɾςετͷ͠΍͢͞)! ❖ DI/Module! ❖

    APIϨεϙϯε΋mockՄೳ → B/E։ൃ΁ͷґଘΛͳͤ͘Δ! ❖ Directive! ❖ ը໘ͷ෦඼Խ! ❖ ϏϡʔͱϞσϧͷࣗಈόΠϯσΟϯά! ❖ ίϯτϩʔϥͷ୯७Խɾۉ࣭Խ ͳΜͰAngularJSʁ (vs. Backbone.js)
  5. ͳΜͰAngularJSʁ (vs. Backbone.js) → ։ൃମ੍ͷεέʔϦϯά͕؆୯ ❖ AngularJS͸! ❖ ॊೈੑͰ͸Backbone.jsʹྼΔ͕…! ❖

    Ϟδϡʔϧɾϕʔεͷ։ൃΛڧ੍ (࠶ར༻ੑɾςετͷ͠΍͢͞)! ❖ DI/Module! ❖ APIϨεϙϯε΋mockՄೳ → B/E։ൃ΁ͷґଘΛͳͤ͘Δ! ❖ Directive! ❖ ը໘ͷ෦඼Խ! ❖ ϏϡʔͱϞσϧͷࣗಈόΠϯσΟϯά! ❖ ίϯτϩʔϥͷ୯७Խɾۉ࣭Խ
  6. ❖ ΧϨϯμʔ (12 weeks) ։ൃϑϩʔ week 1-3: ։ൃج൫ͮ͘Γ week 4-5:

    νʔϜల։ week 6-12: ࣮։ൃ ϩʔϯν → ج൫ͮ͘Γʹ࣌ؒΛ͔͚ͨͷ͕૗ޭͨ͠! ɾϑΝΠϧߏ੒ɾϏϧυϓϩηε
 ɾAPIΫϥΠΞϯτͳͲͷجఈΫϥε
  7. ❖ ΧϨϯμʔ (12 weeks) ։ൃϑϩʔ week 1-3: ։ൃج൫ͮ͘Γ week 4-5:

    νʔϜల։ week 6-12: ࣮։ൃ ϩʔϯν → FrontendΤϯδχΞʹ͔ͬ͠ΓೃΕͯ΋Β͏
 ɾDI / Ϟδϡʔϧࢤ޲ / ςετϑΝʔετͷ֓೦ཧղ
 ɾͪΐͬͱͨ͠DirectiveΛ࡞ͬͯΈΔ
  8. ։ൃϑϩʔ → ʮී௨ʹʯςετɾϑΝʔετͰ͖Δʂ
 ɹ͜ͷϓϩδΣΫτͰ͸! ɹɾUnit Test ͸ඞਢ! ɹɾEnd to End

    Test ͸ΫϦςΟΧϧɾύε֬ೝ༻ ❖ ։ൃΠςϨʔγϣϯ! ❖ Ұൠతͳ΢Σϒ։ൃͱ΄ͱΜͲಉ͡! ❖ ը໘ϞοΫΞοϓ! ❖ APIݕ౼! ❖ ϞσϦϯά / Unit Test / Viewεέϧτϯ࣮૷! ❖ CSSελΠϦϯά
  9. ❖ ϦΫΤετ਺ͷංେԽ! ❖ ΞϓϦຊମˍϏϡʔ! ❖ httpͷίετ͕ߴ͍ϞόΠϧ޲͚αΠτ͸ཁ஫ҙ! ❖ Ϗϧυ࣌ʹόϯυϧ͢Δ! ❖ webmake

    ͰΞϓϦέʔγϣϯΛ·ͱΊΔ! ❖ angular-template Ͱ view Λόϯυϧ! ❖ APIͷઃܭΛ޻෉͢Δ AngularJS ࣮ઓ౤ೖͷTips
  10. ❖ ᐜ༕ͩͬͨ͜ͱ! ❖ Two-way Binding ʹΑΔϨεϙϯεѱԽ! ❖ ஗ԆϩʔυʹΑΔϨΠΞ΢τͣ͘Ε! ❖ AngularJSຊମͷαΠζ

    (minifyͯ͠΋໿100KB) AngularJS ࣮ઓ౤ೖͷTips → ܕམͪAndroid୺຤Ͱ΋αΫαΫ
  11. ❖ ʮ೔ຊͰ௨͑ΔγϦίϯόϨʔͷελʔτΞοϓʯ! ❖ ΤϯδχΞืूதͰ͢ (Frontend & Backend)! ❖ Rails /

    Node.js / CoffeeScript! ❖ ࣍ظϑϩϯτΤϯυ͸AngularJSΛ࠾༻༧ఆ! ❖ http://kaizenplatform.in/ KAIZEN Platform Inc.