Whatâs New in Compose Multiplatform - A Live Tour (droidcon London 2024)
Whatâs New in Compose Multiplatform - A Live Tour (droidcon London 2024)
Node.js: GET ãªã¯ã¨ã¹ããè¡ãExpress: POST ãªã¯ã¨ã¹ããå¦çããNode.js: request ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ GET ãªã¯ã¨ã¹ããè¡ãNode.js: request ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ POST ãªã¯ã¨ã¹ããè¡ãNode.js: superagent ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ GETãPOST ãªã¯ã¨ã¹ããè¡ãNode.js: Restler ã使ã£ã¦ GETãPOST ãªã¯ã¨ã¹ããè¡ãNode.js: connect ã使ã£ã¦ http ãµã¼ãã¼ãç«ã¡ä¸ãã GET ãªã¯ã¨ã¹ãã«ç¶ããPOST ãªã¯ã¨ã¹ãã request ã¢ã¸ã¥ã¼ã«ã使ã£ã¦è¡ãããã©ã¼ãããããapplication/x-www-form-urlencodedãå½¢å¼ã§éä¿¡ããå ´åãform ããããã£ã§æå®ãããã¬ã¹ãã³ã¹ã JSON ã®å ´åãjson ããããã£ã« true ãæå®ããã°
by @dekokun on 2014/01/01 16:13 Tagged as: Node.js. æ°å¹´æ©ã ãå»å¹´å ¨ã使ã£ã¦ããªãã£ãNodeã®ããã°ãã åãã« 2å¹´ã»ã©åã«Nodeã使ã£ã¦ããæã¯ãè¤æ°ãã¼ã¸ã§ã³ç®¡çã«ã¯npmåã³naveãäºå¤§å·¨é ã ã£ãæããããã¾ããã調ã¹ããnã¨ããã®ããã£ãã®ã§ä½¿ã£ã¦ã¿ã¾ãã (2014/01/02 è¿½è¨ nã¯ãåå¹´ã»ã©åã«éçºãæ¢ã¾ã£ã¦ããããã ããã¡ãã£ã¨ã¤ãã¤ããªã®ããªâ¦) é°å²æ° 以ä¸Readmeã®ãããã«ããåç»ãè¦ãã°ãããã®ã§ã¯ãªããã¨ããã®ã対話çã«ãã¼ã¸ã§ã³ãé¸æããæããç´ æµã§ããã Readme.md ä½è ã¯expressãjadeãä½ã£ã¦ããå®å¿ã®visionmediaããã ã¤ã³ã¹ãã¼ã« ãªãããã®æ¹æ³ã«ãã£ã¦Node.jsåã³npmãã¤ã³ã¹ãã¼ã«ããnpm install n -g ããããNodeãªãã§ã¤ã³ã¹ãã¼
5. (ãããªãã«) æ£ããèªè 'Node.js' === âãã³ããããã³ã°I/Oãæã¤Javascript CLIå®è¡ç°å¢' ⢠CLIãGoogle V8 ⢠ã·ã³ã°ã«ã¹ã¬ãã+ã¤ãã³ãã«ã¼ã ⢠ãã³ããããã³ã°I/O ⢠é«ã次å ã§ã®ã¢ã¸ã¥ã¼ã©ããªã㣠⢠ãªã¢ã«ã¿ã¤ã (é¢ä¿ãªã) 6. ã©ãã§ãããç¥è æ£å¼å称ã¯ãNodeãã§ã When referring to the software or the project in general, it's Node.js or simply Node. It is a proper noun, so capitalize it. The .js appears with the first use, to disambiguate from other things called "Node", and Node (with
node.jsã§ã¯ä¾åãã¦ããããã±ã¼ã¸ãpackage.jsonã«æ¸ãã¦ãã㨠npm installã§èªåã§ã¤ã³ã¹ãã¼ã«ãã¦ããããå ·ä½çã«ã¯ãããªæãã§è¨è¿°ã { "name": "myapp", "version": "0.0.1", "dependencies": { "request": "~2.27.0", "levelup": "~0.15.0", "async": "~0.2.9", "leveldown": "~0.8.3" }, "devDependencies": { "coffee-script": "~1.6.2", "mocha": "~1.13.0", "chai": "~1.8.1", "nock": "~0.22.1" } }
Sailsã¨ã¯ Sailsã¯ç±³å½ãªã¼ã¹ãã£ã³ã«ããBalderdash社ã®Mike McNeilãããä¸å¿ã¨ãã¦ä½æããã¦ããMVCãã¬ã¼ã ã¯ã¼ã¯ã§ããã¹ã¿ã¤ã«ã¨ãã¦ã¯Railsã«è¿ãå½¢ãåãã¤ã¤ãæè¿ã®Webã¢ããªéçºã«åããããã¤ãã®ç¹å¾´ãæã£ã¦ãã¾ãã 主ãªç¹å¾´ã¨ãã¦ã¯ Web APIãç°¡åã«ä½æããå ¬éã§ãã ãªã¢ã«ã¿ã¤ã Webãªã¢ããªã±ã¼ã·ã§ã³ãç°¡åã«ä½æã§ãã Single Page SiteãMobileãªã©ã®å¤æ§ãªããã³ãã¨ã³ãã«å¯¾å¿ã§ãã ã¨ãã£ããããªãã®ãæãããã¾ãã Web APIã«ã¤ãã¦ã¯JSONãã¼ã¹ã®RESTfulãªAPIãç°¡åã«ä½ããããã«ãªã£ã¦ãã¾ãï¼Sails API blueprintsï¼ãç¹ã«APIãä½ãã¨ããæèãããã¨ããgeneratorã«ãã£ã¦åç´ãªCRUDãªãããã«APIã¨ãã¦å ¬éãããã¨ãã§ãã¾ããã«ã¼ãã£ã³ã°ã«ã¤ãã¦ãããã®æã®ãã¬ã¼
å æ¥ãåç¥ãããã¦ããã¾ãã JSãªã¸ãµã³#1 ã俺ã®è©±ãèãã5åã ãã§ããããã 3æ27æ¥21cafeã«ã¦è¡ããç¡äºã«çµäºãããã¾ããã®ã§ ãã®å 容ããã£ãããå±ããããã¨æãã¾ãã ãã®æ¥ã®æ¥å ´è æ°ã¯21cafeã®è¨é²ã¨ãªã75人ã¨ã®ãã¨ã ãã¾ãã®ã®ã¥ã¦ã®ã¥ã¦ãªã¸ãµã³ã¶ãã« å·æ¿18度ãå ¨ãæå³ããªããç±æ°ã ã³ã ã³ã®ã¾ã¾ã¹ã¿ã¼ããã¾ããã ã¾ãã¯æè¿ã¨ã³ã¸ãã¢çéãå¯ãã«æ²¸ããã¦ãã 21cafe管ç人ãã ãã¿ã¤ããããã21cafeã®ç´¹ä»ã諸注æäºé ã®èª¬æãªã©ã ãªãã¨ãã¡ãã®å ´æãç¡æã§æä¾ããã ãã¦ãããã§ãã 詳ããã¯ãã²ãã¡ããã御覧ãã ãã http://www.ni-ichicafe.com/ ããããã¯LT10é£çºï¼ï¼ï¼ ã¾ãã¯LTè¸äººãã¨kyo_agoæ°ã ãã¼ãã¯ãLTããããã®æ´å²ã人ã¯ãªãLTãããã®ããã ã¹ã©ã¤ãã¯ãã¡ããã http://0-9.sa
ä»åãã¨ã¦ãã²ãã³ãã«ãã¡ã¼ã«åä¿¡æã«ãã®å 容ãå¦çããã£ã¦ã ã¼ã ããã ã空ã¡ã¼ã«ç»é²ã¿ãããªããããå¿ è¦ã«ãªãã¾ãã ã¾ã大æã«qmailã¨phpã®ãã¤ãã§ãã®ã¸ãããã°ã£ã¦ããã¨ããã£ã¦ã ãã®ããããããªãã¨ãªãä»ã§ããã¼ãã¦ããã§ããã©ã Node.jsã§IMAPã§ã¨ã¦ãããããã«ä¼¼ããã¼ãªã®ããããããã ãããããã¡ãã£ã¨ããã¾ã IMAPãæ±ã Node.jsã©ã¤ãã©ãª node-imapã¨ã ã¼ã®ãã¡ã¸ã£ã¼ã£ã½ããã§ããã©ã ãã©inboxã®ã»ã¼ããã±ã£ã¨ããããããã£ãããã ãã£ã¡ãã£ãã£ã¦ã¿ããã¨ã«ãã¾ãã inboxãã£ãã£ã¦ã¿ã ã¾ããã¤ã³ã¹ãã¼ã«ã§ããã©ãããããããã¨ããªã«ãããã¾ãã npm install inbox --save ããã§ãIMAPæ¥ç¶ãã¦ãã¡ã¼ã«ããã¯ã¹ãéããã¼ã«ãã¾ã https://gist.github.com/ayapi/8770
æ¸è°·21Cafeã§éå¬ãããããJSãªã¸ãµã³ ï¼1ã ããã´ãâ¤åéã®LTã¨ã ã¼ãã¨ã§ã人çåãã¬ã¼ã³ããã¦ãããã¾ãã ãã®æã«æ ãã¦ããã£ã¦ãã¹ã©ã¤ãã¨ã ãã¨ã§åçããããã«èªåã§é²é³ããã¦ãããããããå ¬éãã¾ã slideshare: node-webkit & chrome-remote-interfaceã§ãã©ã¦ã¶ãªã¼ãã¡ã¼ã·ã§ã³ âLTã¥ã®ã¢ã¡ãæ®ã£ã¦é ãã¦ã¾ããï¼¼(^o^)ï¼ â21cafeã®FaceBookãã¼ã¸ã«ãã£ã±ãè¼ãã¦ããã£ã¦ã¾ããï¼¼(^o^)ï¼ æ稿 by 21cafeï¼ãã¤ã¤ãã«ãã§ï¼. æ稿 by 21cafeï¼ãã¤ã¤ãã«ãã§ï¼. æ稿 by 21cafeï¼ãã¤ã¤ãã«ãã§ï¼. âãã®æåãªããã ãã¿ã¤ããã¨ä¸ç·ã«ã¢ã¡æ®ã£ã¦é ãã¾ããï¼¼(^o^)ï¼ âãã ãã¿ã¤ããã®ã¾ã¨ããã¼ã¸ ITæ¥çã§å¯ãã«è©±é¡â¦ã¨ã³ã¸ãã¢ã«èãããå§ããããã ãã¿ã¤ãã£ã¦èª°ï¼
ä»ã¾ã§ããç¨åº¦ Node.js ã使ã£ããã¨ãããæ¹ã¯ã以ä¸ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãï¼åº¦ãï¼åº¦ç®ã«ãããã¨ãããã®ã§ã¯ãªãã§ããããã node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ããã¯ä»¥åã®è¨äº Node.js ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã®è¬ ã§ã解説ãã¾ããããç§ãããè¦ãã®ã¯åå¨ããªãã¹ã¯ãªãããã¡ã¤ã«ãæå®ã㦠Node ãèµ·åããæã«ç¾ããã¨ã©ã¼ã¨ãã¦ã§ãããã®ä»ã // error.js if(true) { throw new Error('hoge'); } ãªã©ã¹ã¯ãªãããã¢ã¸ã¥ã¼ã«å ã§ã¨ã©ã¼ã throw ããæã«ãã $ node ~/error.js node.js:249 throw e; // process.nextTick error, or 'error'
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}