Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ã»ã¯ã·ã§ã³ãã¤ã³ ã® åç°çå¾ï¼@yoshidashingoï¼ã§ãã å社FaaSãã©ãããã©ã¼ã ãæä¾ãã¦ãã¾ãããAuth0ã¨ããèªè¨¼SaaSã®å¥ãããã¯ãã§ããWebtaskã®è©±ãServerlessconf Londonã§èãã¦ããã¨ãããªã®ã§èããªãã試ãã¦ã¿ã¦ã¾ãã Getting Started Webtaskã®ãµã¤ãã«ã¢ã¯ã»ã¹ãã¾ãã https://webtask.iowebtask.io GithubãFacebookãªã©ã§ãã°ã¤ã³(ã¢ã«ã¦ã³ãä½æ)ãã¾ãã wtã¯ã©ã¤ã¢ã³ããã¤ã³ã¹ãã¼ã«ãã¾ã $ npm install wt-cli -g ã¡ãªã¿ã«ãã®ã¯ã©ã¤ã¢ã³ãã¯ãªã¼ãã³ã½ã¼ã¹ã§éçºããã¦ãã¾ãã github.com ç°å¢ã®åæåããã¾ã $ wt init <ä½æããã¢ã«ã¦ã³ãã®ã¡ã¼ã«ã¢ãã¬ã¹(https://webtask.io/cliã«ããããã表示ããã¦
å®è£ 以ä¸ã®ãããªããã³ãã¨ã³ãã¢ããªãå®è£ ãã¦ã¿ã¾ããã¨ã©ã¼å¦çã詳細ã¯å²æãã¾ããã¾ããHello Worldçãªãã®ã¯Cloudia.jsã®Tutorialãã¿ãæ¹ãæã£åãæ©ãã§ãã ããã³ãã¨ã³ãã¢ããªãSNSã®èªè¨¼èªå¯APIããOAuthã®ã¢ã¯ã»ã¹ãã¼ã¯ã³ãåå¾ããã(ç¥) ããã³ãã¨ã³ãã¢ããªãã¢ã¯ã»ã¹ãã¼ã¯ã³ãä»ä¸ãã¦AWS API Gatewayã«ãªã¯ã¨ã¹ããæããã(ç¥) AWS API GatewayãSNSã®èªè¨¼èªå¯APIãç¨ãã¦ã¢ã¯ã»ã¹ãã¼ã¯ã³ãæ¤è¨¼ããã AWS API GatewayãFaaSã®é¢æ°ãå¼ã³åºãã AWS Lambdaã®é¢æ°ãAWS DynamoDBã®ãã¼ãã«ãããã¼ã¿ãåå¾ãã¦ããã³ãã«è¿ãã 1. ã«ã¹ã¿ã èªè¨¼ã®ä½æ 1. ã«ã¹ã¿ã èªè¨¼ç¨ã®Lambdaé¢æ°ãä½æãã¾ãã authorizer.jsãä½æãã¾ããAccess Tokenæ¤è¨¼AP
Web å¶ä½ããã¦ããã¨ãã¼ã¸ã®è¡¨ç¤ºç¢ºèªãã³ã³ãã¼ãã³ãã®æ´ãåºããªã©ã§ã大éã«ãã£ããã£ãæ®ã£ã¦ãããæãããã¾ãã ããããã©ã¦ã¶ã®ã¨ã¯ã¹ãã³ã·ã§ã³ã§1æãã¤æ®ãã®ãé¢åã§ãã ãã㧠PhantomJS 㨠CasperJS ã使ãã¨ãã£ããã£ãèªååãããã¨ãã§ããã¨ãããã¨ãªã®ã§ãå éãã¡ã®æ å ±ãåèã«ããã£ããã£ãããURLã¨æ³å®ããããã¤ã¹ã CSV ã§ç®¡çãã¦ã楽ã«ãã£ããã£ãã¨ãããã®ãä½æãã¾ããã PhantomJS 㨠CasperJS ã¨ã¯ PhantomJS ã§ãããã°ã©ãã£ã«ã«ãªç»é¢ã®ãªããã©ã¦ã¶ã§ããããã¬ã¹ãã©ã¦ã¶ãã¨å¼ã°ãããã©ã¦ã¶ã§ããã³ãã³ãã©ã¤ã³ãããã©ã¦ã¶ã®æ©è½ã使ããã¨ãã§ãããã©ã¼ã ã®æä½ããã¼ã¸ã®è¦ç´ ãåå¾ãããã¨ãã§ãã¾ãããã CI ãã¼ã«ã¨çµã¿åããã¦èªåãã¹ããè¡ã£ãã Web ã¹ã¯ã¬ã¤ãã³ã°ã§ä½¿ãããããã¾ãã PhantomJS
ã¡ãã£ã¨Socket.ioãå°å ¥ããæ©ä¼ããã£ãã®ã§ãè²ã 調æ»ããã®ãã¡ã¢ãã¦ããã¾ãã Socket.ioã¨ã¯ node.jsã®npmã¨ãã¦æä¾ããã¦ãããWebSocketãæ軽ã«æ±ããã¢ã¸ã¥ã¼ã«ã§ãã å¤åãããæåãªã®ã§ãã ãããã¿ãªããç¥ã£ã¦ãã¨æãã¾ãã ä»ã«ã¯websocket-serverã¨ãããããã§ããããã£ã¡ã®æ¹ãæåã§ãããã ç¹å¾´ã¨ãã¦ãã¯ã©ã¤ã¢ã³ããµã¤ãã®ãã©ã³ã¹ãã¼ããã¯ãã¹ãã©ã¦ã¶ãªã¨ããã§ããããããã¨ã¦ãå©ããã¾ãã 詳ããã¨ããã¯å ¬å¼ãµã¤ããè¦ãã¨ããã¨æãã¾ãã Socket.IO: the cross-browser WebSocket for realtime apps. ããããåºãã°ã£ããã®é ã«ã触ã£ããã¨ããã£ããã§ãããä»ä½¿ã£ã¦ã¿ãã¨æ©è½ããããå¢ãã¦ã¦ã³ã£ããã æ©è½ã®ç´¹ä»ã¨ãã¯ä»ã®ãµã¤ããè¦ã¦ãããã¨ãã¦ãåå¿é²çã«èªåããã£ãæãªã
èæ¯ Javascript 㧠Web ã¢ããªãä½ããã¨ããã¨ãããããããªããã¨ã ããã§è¶ æ··ä¹±ãã¾ãã npm 㨠bower ã®éãã¯ï¼ npm ã¯ãµã¼ãã¼ãµã¤ãç¨ãbower ã¯ã¯ã©ã¤ã¢ã³ããµã¤ãç¨ãããã ãã£ãã§ããªã㧠bower ã®ã¤ã³ã¹ãã¼ã«ã« npm ãå¿ è¦ãªã®ï¼ ãµã¼ãã¼ãµã¤ã㯠Rails ã§æ¸ããããã npm è¦ããªãã¨æããã ãã©ã»ã»ã» ã¦ããããµã¼ãã¼ãµã¤ãJSã¨ã node.js ã£ã¦ä½ï¼ ããè¦ã browserify ã£ã¦ä½ï¼ ãããã£ãçåã沸ãä¸ããã®ã¯ãåãã¼ã«ãçã¾ããæèãããããã£ã¦ããªãããã§ãããããã調ã¹ã¦ãã£ã¨ã¡ãã£ã¨ããã£ã¦ããã®ã§ã¡ã¢ãã¾ããééãããã£ãããææãã ããã ãCommonJSãèªç - Javascript ã¯æ±ç¨ããã°ã©ãã³ã°è¨èªã¸ ãã®æãJavascript 大好ãããããã¯è¨ãã¾ããã Javascrip
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}