ç¾å¨ã(ç´ã®)æ¸ç±ã¨ãã¦è³¼å ¥ã§ããæ¥æ¬èªã® React ã®å ¥éæ¸ã® è¯ãç¹ / æ®å¿µãªç¹ ãã¾ã¨ãã¦ã¿ã¾ããã ãªãã¹ãå ¬å¹³ãªè©ä¾¡ãããã¤ããã§ãããç§ã¯ ä½ããªããå¦ã¶ Reactå ¥é ã®èè ã§ãã®ã§è¥å¹²ã®ãã¤ã¢ã¹ã¯ãäºæ¿ä¸ããã çµè« Reactã®è¨è¨ææ³ãã¡ããâ¦
ä¾å¹´éããä»å¹´ãæ¨å¹´2017å¹´ã®ä»äºãå人ãæ¯ãè¿ã£ã¦ã¿ã¾ãã ã¾ã¨ãã¦ã¿ãã¨ãä»äºããã£ããã¨ãããªããããã©ã¤ãã¼ããªæ´»åãå å®ãã¦ããå¹´ã§ããã ä»äº éçº æ¨å¹´ã«å¼ãç¶ã React (+ Rails) ã®ã·ã¹ãã ãã客æ§ãæ¬æ ¼çã«ä½¿ãå§ãããããããªè¦æâ¦
ãä½ããªããå¦ã¶ React å ¥éã ã®8ç« ãã¹ãã£ã³ã°ã§ãã¹ãã©ã³ãã¼ mochaã 4.0.0 ã«ã¢ãããã¼ããã¦ãã npm test ãçµäºããªãåé¡ãããã¾ãããã mochaã 4.0.1 ã§è§£æ±ºããã¾ããã ãã ãã package.json ã«ãããã¹ãã³ãã³ãã« --exit ãªãã·ã§ã³â¦
ãä½ããªããå¦ã¶ React å ¥éã ãµãã¼ããã¼ã¸ https://github.com/yuumi3/react_book ã§ã¯æ å ±ã®æä¾ä»¥å¤ã«ã質åãªã©ãåãä»ãã¦ãã¾ãã ãµãã¼ããã¼ã¸ã§ã¯ éçºç°å¢ã®æ§ç¯æé æ¬ã«æ¸ããã¦ãããã»ã¼å ¨ã¦ã®ã³ã¼ã æ£èª¤è¡¨ ãªã³ã¯ ãªã©ã®ãµãã¼ãæ å ±â¦
ãä½ããªããå¦ã¶ Reactå ¥éãã¨ããReactã®å ¥éæ¸ãæ¸ãã¾ããã Reactã®æ å ±ã¯ Reactã®ãã¼ã ãã¼ã¸ ã® Docs ãä¸ç´è åãã®å ¥é Tutorial ã«ã¾ã¨ã¾ã£ã¦ãã¾ãããåå¿è ã«ã¯æ·å± ãé«ãããããã¾ããã ç§èªèº«ã Reactã®æè²ãè¡ãã®ã«è¯ãæ¥æ¬èªæ¸ç±ã¯ãªâ¦
ç¾å¨ã®ä»äºã§ä½ã£ã¦ãiOSã¢ããªã®ä¸ã«ããã¤ã¯ããã®é³ãm4a (AAC) ã§é²é³ããæ©è½ãå¿ è¦ãªã®ã§ã é©å½ãªãµã³ãã«ã³ã¼ãã¯ãããä¸ã«å¨ãã ããã¨æãæ¢ããã®ã§ãããæ¡å¤ã¿ã¤ããã¾ããã§ããã ãªãè¦ã¤ãããªããã¨ãã㨠ä»åã¯ãããããªçç±ãããå®â¦
ä¸ã®ä¸ããDockerã®æ代ãªã®ããããã¾ããããããæ¡ä»¶ã§ä½¿ããµã¼ãã¼ã®ãããã¸ã§ãã³ã°ãã¼ã«ã¨ãã¦Ansibleã使ã£ã¦ã¿ã¾ããã ä»ã¾ã§ã¯Chefã使ã£ã¦ãã¾ãããChefã¯Rubyã§ã¬ãªã¬ãªæ¸ããã®ã§ä½ã§ãã§ãã¾ãããã¡ã³ããæ§æ管çæ å ±ãä¼ããã®ã«é£ããâ¦
é·ãããã¹ã¯ã¼ãã®ç®¡çã¯é©å½ã«ãã£ã¦ãã®ã§ãããæè¿ 1Password ãç¥ã使ããã¨ã«ãã¾ããã 1Passwordã®ç´¹ä»è¨äºã¯ããããããã®ã§ãããå¤ãã®è¨äºã«æ¸ããã¦ãå 容㨠1Passwordã®ãã¼ã ãºã¼ã¸ ã«æ¸ããã¦ããå 容ã¯éãããã調ã¹ãªãã使ã£ã¦ã¿ãçµâ¦
ããä»äºã§Ruby on Rails 2.3ãã¡ã³ããã³ã¹ãã¦ãã¾ãããPostgreSQL ã®ãã¼ã¸ã§ã³ã 9.2 ãã 9.6.1 ã«ã¢ãããã¼ãããäºã«ãªã£ãã®ã§ãããä¸é¨ã®æ©è½(Active Scaffold è¦ãã¦ã¾ããï¼)ãåãã¾ããã§ããã ã½ã¼ã¹ã調ã¹ã¦ããã¨ãActiveRecord ã® connâ¦
ãã¦ä»å¹´ã®EY-Officeã«ã¤ãã¦èãã¦ã¿ã¾ããã 2016å¹´ã®ã¾ã¨ã ãããã¦ä»å¹´ã¯ã©ãããããã§ãããããããã¨è¿·ã£ã¦ã¾ãã ç¾ç¶ éçºã®ä»äºã¯ç©æ¥µçã«æ¢ãã¦ããããã§ã¯ãªãã®ã§ãããã£ã¦ãã¾ãããããããäºã§ããåè¨ã®ä»äºã¯ãªã¹ã¯ãä½ãããããããâ¦
ãã2017å¹´ã«ãªãã¾ããããæ¨å¹´ã®ã¾ã¨ããæ¸ãã¾ããã ãä»äº ååã¯å¿ãããã£ãã§ãããå¾åã¯ã®ãã³ãã¨ãã¦ãããã¨æãã¾ãã éçº React.js å¹´å§ã¯ãä¸æ¨å¹´ããå§ãããRuby on Rails + React.js ã®ä»äºãä½³å¢ã«å ¥ãããã£ã¤ãReact.js ãæ¸ãã¾ããâ¦
ç°¡åãªãããã¹ã§ãããååã®è¨äº ãç°å調å¸ã¯æã£ã¦ãããã大ããããããæåã«åãæ®ãããè¡ã ã£ãã ãæ¸ãã®ã«ç°å調å¸ã®å°å³ã«ä¸ç®ãéããå°å³ã欲ããã£ãã®ã§ãããé©å½ãªãã®ããããä¸ã§çºè¦åºæ¥ãªãã£ãã®ã§ãèªåã§ä½ãäºã«ãã¾ããã æ¹æ³â¦
ã¯ãã¾ã ã¿ãªããã¯ãç°å調å¸ã«ã©ããªã¤ã¡ã¼ã¸ãæã£ã¦ãã¾ããï¼ æ´è½ãé§ èããæ¾å°ç¶ã«åºããéã¨ãããã¤ãªãååå½¢ã®éã®åºç»ã«ãå±æ·ã建ã¤é«ç´ä½å® å°ãã¨ããã¤ã¡ã¼ã¸ã§ããããã ç§ã¯ç°å調å¸ã®ï¼é§ ã¨ãªãã®èªç±ãä¸ã«20年以ä¸ä½ãã§ããã®ã§ããâ¦
é·å¹´ä½ãã ãã³ã·ã§ã®é¨å±ããªãã©ã¼ã ããããã«ãä»®ä½ãç¨ã®ã¢ãã¼ããåãã¦å¼ã£è¶ãã¾ããã ãã®ã¢ãã¼ãã«ãã¬ãã¯å°ä¸æ³¢ããæ¥ã¦ãªãã£ãã®ããç§ã¯ãã£ãããã¬ããè¦ã¾ãç¹ã«NHK-BSã®æ´å²çªçµãæ çªçµãªã©ã好ãã§ããã¾ãå¨ãæããéçãã¼ã ã®è©¦â¦
ä»æ´ã¨ããæããããã¾ãããç§ã®ä¼ç¤¾ã®ãã¼ã ãã¼ã¸ ãã¬ã¹ãã³ã·ãã¦ã§ããã¶ã¤ã³ã«å¯¾å¿ãã¾ããã ã¬ã¹ãã³ã·ã CSS ãã¬ã¼ã ã¯ã¼ã¯ã®é¸å® ã¬ã¹ãã³ã·ãã¦ã§ããã¶ã¤ã³ã«ããã®ã«ã¯ãä½ããã® ã¬ã¹ãã³ã·ã CSS ãã¬ã¼ã ã¯ã¼ã¯ ã使ãã®ãæ©éã§ãã ãâ¦
ããã»ããã¼åãã«ä½ã£ããReact Nativeã¢ããªãå¥ã®Mac㧠git clone ãã¦å®è¡ãããã¨ããã ä¸ã®ç»åã®ã¨ã©ã¼ãåºã¦è§£æ±ºã¾ã§æéããã£ãã®ã§ã¡ã¢ãã¦ããã¾ãã React Native éçºç°å¢ã®æ§ç¯ React Nativeã®Getting Startedã«ããæé 㧠$ npm install -â¦
React.js + Photon.css + Webpack 㧠Electronã®ãµã³ãã«ã¢ããªãä½ã£ã¦ãæã®ã¡ã¢ã§ãã éçºç°å¢ ã¾ãã以åæ¸ãã ãµã¼ãã¼ãµã¤ãããã°ã©ãã¼ã®ããã®React.js å ¥é 2. éçºç°å¢ã®æ§ç¯ã®ç¶ã ã®ããã« React.js ã®éçºãåºæ¥ãç°å¢ãæºåãã¾ãã 追å ãâ¦
æè²ã®ä»äºã§GitLab(ãã©ã¤ãã¼ãã§pull requestãªã©ãåºããå®ããµã¼ãã¹)ãå¿ è¦ã«ãªãããµã¼ãã¼ãç«ã¡ä¸ãã¾ããã以åã¯èªç¤¾ã®ã³ã¼ããGitLabã§ç®¡çãã¦ããã®ã§ãããä»ã¯ æ¹é çGinatra ã使ã£ã¦ããã®ã§ãæè²ã®æéã®ã¿GitLabç¨ã®ãµã¼ãã¼ãç«ã¡ä¸ãâ¦
ç§ã¯ä»äºããã人åã§ã³ã¼ãä½æã®ãã¢ãè¡ãäºãããããã¾ãããã®å ´ã§ããªããªã¨ã©ã¤ãã»ã³ã¼ãã¤ã³ã°åºæ¥ãã¨ã«ãã³è¯ãã§ãããééããããã³ã¼ããæ¸ããã¨ã«æ°ãåãã説æãããããã«ãªã£ãããããã¨ãèµ·ãããã¡ã§ãã ããã§èª¬æã®ã¹ãã¼ãªã«æ²¿â¦
React.jsã®éçºãçµãããå¾ãããç¥è¦ããã¨ã« 5æ23æ¥ ã« React.jsã®ç´¹ä»çãªç¡æã»ããã¼ãè¡ãã¾ãã atnd.org å 容ã¯ãReact.js ããªãè¯ãã®ããéçºç°å¢ã«ã¤ãã¦ãç°¡åãªã¢ããªãã©ã¤ãã§ä½æã»ã»ã» ãªã©ã® React.jsã®ç´¹ä»çãªå 容ã«ãªãã¾ãã ä¼å ´â¦
ããæ°ã¶æãä¹ ã ã«è©°ãã¦è¡ã£ã¦ãã Recat.js ã®ä»äºãã»ã¼çµããã¾ãã !! ä»äºã®è©³ç´°ã¯æ¸ãã¾ãããã æ¢åã®jQueryãã¼ã¹ã®Webã¢ããªãã¡ã³ããã³ã¹ä¸å¯è½ã«è¿ããªã£ã¦ããã®ã§ Recat.js ã«ç½®ãæãã¾ããã æ¢åã®ã¢ããªã¯ Backend 㯠Ruby on Rails jQâ¦
React.jsã®ä»äºã®ç´æã«ããã1ã¶æã¶ãã«ãªã£ã¦ãã¾ããã¾ããããä»å㯠react-router ã®å°å ¥ æ´æ°ç³»ãã¼ã¸ã®è¿½å ãè¡ããTodoã¢ããªãå®æãããã¨æãã¾ãã react-router JSã§ä½ãããã¢ããªã¯SPA(Single Page Application)ã¨å¼ã°ãã¦ããããã«ç©ççâ¦
ãããã React.js å ¥é éçºç°å¢ä½æã«2åã使ãã¾ããããä»åãã React.js ãå§ãã¾ãã éçºç°å¢ã¨ãããã¨ãã£ã¿ã¼ã§ããã主ãªã¨ãã£ã¿ã¼ã¯ JSX, ES6 ããµãã¼ãããæ¡å¼µããã±ã¼ã¸ããã¯ãçãããã¨æãã¾ãã®ã§å ¥ãã¦ããã¾ãããããã¡ã WebStorâ¦
ãµã¼ãã¼ãµã¤ãããã°ã©ãã¼ã®ããã®React.js å ¥é 2. éçºç°å¢ã®æ§ç¯ã®ç¶ã
ããããä½ãã¢ã㪠ä»åã¨æ¬¡åã§ä½ãã¢ããªã§ãã Ruby on Railsã®scaffoldã¸ã§ãã¬ã¼ã¿ãçæããå¤ãè¯ãæ代ã®åç´ãªWebã¢ããªã±ã¼ã·ã§ã³ã¨åãåãããããReact.js ã使ã£ã Single page application (SPA)ã®ããã³ãã¨ã³ããä½ã£ã¦ããã¾ãã ããã¯â¦
æè¿ãããªããªã¨ jQueryãã¼ã¹ã®ããã³ãã¨ã³ãã React.js ã«ç½®ãæãã¦ãã¾ãã ç§ã主㫠Ruby on Railsçã® ãµã¼ãã¼ãµã¤ãã¨ã³ã¸ãã¢ã§ãæè¿ã®ããã³ãã¨ã³ãéçºãæ¬æ ¼çã«éçºããã®ã¯åãã¦ã§ããããããã¨ã¤ã¾ãããªããé²ãã§ãã¾ããã ã¾ã㯠â¦
å æ¥ããããµã¼ãã¹ã§ãã©ãã«ã !! ã客æ§ã®ã¨ããã§ããã¡ã¤ã«ã®ã¢ãããã¼ããåºæ¥ãªãã¨é£çµ¡ãããã¾ããã ãã¡ãã§è©¦ãã¦ã¿ãã¨æ£å¸¸ã«ã¢ãããã¼ãã§ãã¾ãã詳ããèãã¨ãã客æ§ã®èªå® ããã¢ãããã¼ãåºæ¥ãªãã¨ã®ãã¨ã»ã»ã» Macã«ã¯ãããã¯ã¼ã¯ã®â¦
Turnip, Cucumber, RSpec feature ãªã©ã使ã£ã end-to-end ãã¹ã ã®ãã¹ããã¼ã¿ãã©ãä½ããã«ã¤ãã¦ãä»ã¾ã§ã®çµé¨ãæ¸ãã¦ã¿ã¾ãã RSpecãªã©ã使ã£ãã¢ãã«ã®ãã¹ãã§ããã°ããã¹ããã¼ã¿ã¯ factory_girl çã使ãããã¹ãã«å¿ è¦ãªãã¼ã¿ã it, descrâ¦
ç¾å¨ãããªããªã¨ Tunip + Capyabara + PhantomJS (poltergeist) 㧠end-to-end ãã¹ããæ¸ãã¦ã¾ãã ããã§ç¥ã£ããã¦ãã¦ãæ¸ãã¾ããä»åã¯ãã¹ãã®æ§æåããªã©ã®ä¸æµå´ã§ã¯ãªãããã¼ã«ã steps å´ã«ãªãã¾ãã Turnipã«éãã Cucmber, RSpec Featureâ¦
æãã¾ãã¦ããã§ã¨ããããã¾ãã æ¨å¹´ã®ã¾ã¨ãã¨ãä»å¹´ã®æ±è² ãæ¸ãããã¨æãã¾ãã 2015å¹´ã®ã¾ã¨ã ãä»äº æ¨å¹´ãéçºã¨æè²ã®ãä»äºãåã ãããããã§ãããã ã¹ã¿ã¼ãã¢ããä¼æ¥ã§ã®Ruby on Railsæè² ã¹ã¿ã¼ãã¢ããä¼æ¥ãä¸å¿ã«ãããããªãªä¼ç¤¾ã§â¦
å°ãåã«CIãµã¼ãã¼ã¨ãã¦ä½¿ã£ã¦ããMac miniãã亡ããªãã«ãªããCIãµã¼ãã¼ã©ããããã¨èãã¦ãã¾ããã Dockerã使ãCIç°å¢ãä½ãããããã®ã¯ã©ã¦ãã«ããã¹ãã¼ã¸ã³ã°ç¨ã®ãµã¼ãã¼ã§åããã°è¯ãã®ã§ã¯ï¼ ã¨æãç«ã¡åæ¥ã«ææ¦ãã¦ã¿ã¾ããã Macä¸ã§Câ¦