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

個人開発者のためのaws-serverless-express #kyotojs

個人開発者のためのaws-serverless-express #kyotojs

HANATANI Takuma(@potato4d) 2018.03.23
#kyotojs

potato4d(Takuma HANATANI)

March 24, 2018
Tweet

More Decks by potato4d(Takuma HANATANI)

Other Decks in Programming

Transcript

  1. Ξ • ࣗݾ঺հ • ݸਓ։ൃʹ͓͚ΔΠϯϑϥෛ୲ͷਏ͞ • PaaSʹΑΔղܾ • aws-serverless-expressͷྑ͞ •

    ݸਓ։ൃऀʹͱͬͯͷNode.jsͷΠϯϑϥͷͭΒ͞ • aws-serverless-expressͷ͸͡Ί͔ͨ
  2. Ί͙ΈΜ ੠ - ಺ాਅྱ / ߴڮཥґ ߚຐ଒ͷগঁɻ13ࡀˠ14ࡀ ʢWEB൛Ͱ͸17ࡀલޙʣɻεϐϯΦϑʮ͜ͷૉ੖Β͍͠ ੈքʹരԍΛʂ ʯͷओਓެɻ

    ࠇ൅ʹߚ͍໨ɻࠇϚϯτ ʹࠇϩʔϒɺτϯΨϦ๧ࢠΛඃΓɺࠨ໨ʹ؟ଳʢผʹ໨ ͕ѱ͍Θ͚Ͱ͸ͳ͘ɺͨͩͷϑΝογϣϯʣΛ͚͍ͭͯ ΔɻΧζϚͱΞΫΞͷग़ͨ͠ύʔςΟʔϝϯόʔืूͷ ுΓࢴΛݟͯ஥ؒʹՃΘΔɻମ֨͸খฑͰࡉ਎ɺ਎௕͸ গͳ͘ͱ΋ΧζϚ(165cm)ΑΓ௿͍ɻ԰ෑͰ͸੺ͷύ IUUQTCJUMZ;#'.;P
  3. @potato4d • ౦ژͰϑϦʔϥϯε΍ͬͯΔ • ͍͍ͩͨϑϩϯτΤϯυ • ࠷ۙ͸ຆͲNuxtͷ։ൃͱ͔ϑϩϯτٕज़૬ஊ • Vue.js JP

    / VueFes Staff / Vue.js translator • ͜ͷؒٱʑʹNode.jsΛੜͰॻ͍ͨΒdeep copyͷͨ Ίʹobject-rest-spreadΛ࢖ͬͯCIΛམͱͨ͠ਓ
  4. lambda.jsΛ࡞੒ const awsServerlessExpress = require('aws-serverless-express') const app = require('./app') const

    server = awsServerlessExpress.createServer(app) exports.handler = (event, context) => awsServerlessExpress.proxy(server, event, context)