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

Node.js開発を高速化するAirlaneの紹介

 Node.js開発を高速化するAirlaneの紹介

【新年】日本酒で乾杯!ランサーズ Drink Meetupでの発表資料です。

Atsushi Nakatsugawa

January 11, 2017
Tweet

More Decks by Atsushi Nakatsugawa

Other Decks in Technology

Transcript

  1. \         /_ /     ヽ /   } レ,'           / ̄ ̄ ̄ ̄\   |`l`ヽ    /ヽ/ <´`ヽ u  ∨ u  i レ' 

            /   └l> ̄    !i´-)     |\ `、 ヽ), />/        /  地  ほ  こ    !´ヽ、   ヽ ( _ U   !、 ヽ。ヽ/,レ,。7´/-┬―┬―┬./  獄  ん  れ   _|_/;:;:;7ヽ-ヽ、 '')  ""'''`` ‐'"='-'" /    !   !   /   だ.  と  か    |  |;:;:;:{  U u ̄|| u u  ,..、_ -> /`i   !   !  \   :.  う  ら    |  |;:;:;:;i\    iヽ、   i {++-`7, /|  i   !   !  <_      の  が   __i ヽ;:;:;ヽ `、  i   ヽ、  ̄ ̄/ =、_i_  !   !   /    ヽ ヽ;:;:;:\ `ヽ、i   /,ゝ_/|  i   ̄ヽヽ !  ! ,, -'\     ヽ、\;:;:;:;:`ー、`ー'´ ̄/;:;ノ  ノ      ヽ| / ,、-''´ \/ ̄ ̄ ̄ ̄                  ̄ ̄ ̄            Y´/;:;:;\
  2. &YQSFTTͷਏΈ )551ϝιουͷ165%&-&5&͕ղऍ͞Εͳ͍ var methodOverride = require('method-override'); app.use( methodOverride( (req, res)

    => { if (req.body && typeof req.body === 'object' && '_method' in req.body) { var method = req.body._method; delete req.body._method; return method; } }));
  3. /PEFKTͷਏΈ τϨϯυʢʁʣͷมԽ଎͗͢ ʲ຋༁ʳ೥ʹ+BWB4DSJQUΛֶΜͰͲ͏ײ͔ͨ͡&OEP5FDI#MPH
 IUUQLJLVDIJIBUFCMPKQFOUSZ 3FBDU 3FBDU%0. #BCFM +49 &4 ".%

    $PNNPO+4 #SPXTFSJGZ #PXFS "OHVMBS 7VF+4 3Y+4 (SVOU (VMQ #SPDPPMJ .JNPTB 8FCQBDL 4ZTUFN+4 5ZQFTDSJQU 'MPX #MVFCJSE 'FUDI "YJPT 'MVY 'MVNNPY 'MVYJCMF 3FEVY 1MBUFT+4
  4.      /\___/ヽ   ヽ     /    ::::::::::::::::\ つ    . |  ,,-‐‐   ‐‐-、 .:::| わ

       |  、_(o)_,:  _(o)_, :::|ぁぁ .    |    ::<      .::|あぁ     \  /( [三] )ヽ ::/ああ     /`ー‐--‐‐―´\ぁあ
  5. ϧʔςΟϯάίϯτϩʔϥ ᵓᴷᴷDPOpHKT ᵓᴷᴷNPEVMFT ᵓᴷᴷQBDLBHFKTPO ᵓᴷᴷSPVUFT ᴹᵓᴷᴷDPOUSPMMFSKT ᴹᵓᴷᴷJOEFYKT ᴹᵓᴷᴷQVCMJD ᴹᴹᵓᴷᴷBQQDTT ᴹᴹᵋᴷᴷBQQKT

    ᴹᵓᴷᴷUFTU ᴹᴹᵋᴷᴷDPOUSPMMFS@UFTUKT ᴹᵋᴷᴷWJFXT ᴹᵓᴷᴷFEJUKBEF ᴹᵓᴷᴷJOEFYKBEF ᴹᵓᴷᴷMBZPVUKBEF ᴹᵋᴷᴷOFXKBEF ᵋᴷᴷUNQ ίϯτϩʔϥ ϧʔςΟϯά
  6. ϧʔςΟϯά WBSFYQSFTTSFRVJSF FYQSFTT  WBSSPVUFSFYQSFTT3PVUFS  WBSDPOUSPMMFSSFRVJSF DPOUSPMMFS  NPEVMFFYQPSUTNPEVMF\

    SPVUFSBMM    SFR SFT OFYU \ DPOUSPMMFSBMM SFR SFT OFYU  ^  (&5 4IPXJOEFYQBHF SPVUFSHFU   SFR SFT OFYU \ DPOUSPMMFSJOEFY SFR SFT OFYU  ^  (&5OFX 4IPXDSFBUFQBHF SPVUFSHFU OFX  SFR SFT OFYU \ DPOUSPMMFSOFX SFR SFT OFYU  ^  SFUVSOSPVUFS ^ }ϧʔτ΁ͷ(&5ΞΫηε }OFX΁ͷ(&5ΞΫηε
  7. ίϯτϩʔϥ DMBTT5PEP$POUSPMMFS\ DPOTUSVDUPS \ > (&5 JOEFY SFR SFT OFYU

    \ SFTSFOEFS JOEFY  ^ 1045 (&5OFX OFX SFR SFT OFYU \ SFTSFOEFS OFX  ^ ^ NPEVMFFYQPSUTOFX5PEP$POUSPMMFS
  8. ௥Ճ͞ΕΔϑΝΠϧ USFF  ᵓᴷᴷSPVUFT ᴹᵓᴷᴷDPOUSPMMFSKT ᴹᵓᴷᴷJOEFYKT ᴹᵓᴷᴷVTFST ᴹᴹᵓᴷᴷDPOUSPMMFSKT ᴹᴹᵓᴷᴷJOEFYKT ᴹᴹᵓᴷᴷQVCMJD

    ᴹᴹᴹᵓᴷᴷBQQDTT ᴹᴹᴹᵋᴷᴷBQQKT ᴹᴹᵓᴷᴷUFTU ᴹᴹᴹᵋᴷᴷDPOUSPMMFS@UFTUKT ᴹᴹᵋᴷᴷWJFXT ᴹᴹᵓᴷᴷFEJUKBEF ᴹᴹᵓᴷᴷJOEFYKBEF ᴹᴹᵓᴷᴷMBZPVUKBEF ᴹᴹᵋᴷᴷOFXKBEF ᵋᴷᴷUNQ VTFSTҎԼʹରԠ }