ã¯ããã«
ãRuby on Railsã¯ããªã¼ãã³ã½ã¼ã¹ã®Ruby製Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ï¼ä»¥éããã¬ã¼ã ã¯ã¼ã¯ï¼ã§ããMVCã¢ã¼ããã¯ãã£ãæ¡ç¨ãã
- ãåããã¨ãç¹°ãè¿ããªããï¼DRYï¼
- ãè¨å®ããè¦ç´ãï¼CoCï¼
ãã¨ã®åºæ¬ç念ã§è¨è¨ããã¦ãã¾ãããã®è¨è¨ææ³ã¯ããã®ä»ã®è¨èªã§è¨è¿°ããããã¬ã¼ã ã¯ã¼ã¯ã«ã大ããªå½±é¿ãä¸ãã¦ãã¾ãã
ãRails 5ã¯ãRails 4ã¾ã§ã®åºæ¬çãªè¨è¨ææ³ãåãç¶ãã¤ã¤ãRuby 2.2.2以ä¸ã§ã®åä½ãåæã¨ãããããå é¨çã«ã¯å¤§ããæ¸ãæãããã¦ãã¾ããã¾ããWebSocketã«ããåæ¹åéä¿¡ãå¯è½ã¨ããAction Cableãããã軽éã«åä½ããAPIã¢ã¼ããªã©ç®çã¨ãªãæ°æ©è½ã追å ããã¦ãã¾ãã
ãæ¬é£è¼ã§ã¯ããããRails 5ã®æ°æ©è½ã追å æ©è½ãããµã³ãã«ã¢ããªã±ã¼ã·ã§ã³ãå®è£ ããªããç´¹ä»ãã¦ããã¾ããååã¨ãªãä»åã¯ãæåã«Rails 5ã®æ°æ©è½ã追å æ©è½ã®æ¦è¦ã説æããå¾ãRails 5ã®åæã¨ãªãéçºç°å¢ãæ§ç¯ãã¾ãã
対象èªè
- Rails以å¤ã®webãã¬ã¼ã ã¯ã¼ã¯ã®çµé¨ããããRailsãåãã¦è§¦ãæ¹
- ææ°ã®Railsã§å ·ä½çã«ã©ããªãã¨ãå®ç¾ã§ããã®ãç¥ãããæ¹
- éå»ãã¼ã¸ã§ã³ã®Railsã触ã£ãçµé¨ããããRails 5ã§ã©ãå¤ãã£ããç¥ãããæ¹
æ¬é£è¼ã§åæã¨ããç°å¢
- MacBook Proï¼OS X Yosemiteï¼
- Ruby 2.3.1
- PostgreSQL 9.5.4
- Redisï¼ãªã³ã¡ã¢ãªKVSï¼
ãåºæ¬çã«ã¯ãååã®æ¬ç¨¿ã§å¾è¿°ããç°å¢æ§ç¯é¨å以å¤ã®å®è£ ã¯OSã«ãããå ±éããã¯ãã§ãã®ã§ãWindowsã®æ¹ã¯ç°å¢æ§ç¯ãWindowsä¸ã§é å¼µã£ã¦è¡ãããDockerã«ã¤ãã¦ã®ç¥è¦ãããæ¹ã§ããã°ãã¡ãã®è¨äºããããåç §ããç°å¢æ§ç¯ãè¡ã£ã¦ãã ããã
ããªã³ã¡ã¢ãªKVSã§ããRedisã¯Action Cableã«ããåæ¹åéä¿¡ãå®ç¾ããããã«å¿ è¦ã¨ãªãã¾ãã