GitHub ã®ãã¬ã³ããªãã¸ããªãè¦éããªãï¼Trendy ãã¤ããã¾ãã
åã1æ¥ã«1åãããã®é »åº¦ã§è¦ã¦ãããã¼ã¸ã®ä¸ã®1ã¤ã« GitHub ã® Trending repositories ã®ãã¼ã¸ãããã¾ãï¼ãã®ãã¼ã¸ã«ã¯è¨èªãã¨ã«æ¥æ¯ã»é±æ¯ã»ææ¯ã®åä½ã§ GitHub ä¸ã§äººæ°ã®ãªãã¸ããªãã©ã³ãã³ã°å½¢å¼ã§è¡¨ç¤ºããã¾ãï¼
話é¡ã«ãªã£ã¦ããã©ã¤ãã©ãªãã½ããã¦ã§ã¢ã®ä¸æ¬¡ã½ã¼ã¹ã¨ãã¦ä¾¿å©ãªã®ã§ããï¼å¾®å¦ã«ã¢ã¯ã»ã¹ãæªãä½ç½®ã«ããï¼è¨èªãã¨ã«ããè¦ããã¾ããï¼ã¾ãï¼ã©ã³ãã³ã°ã«ã¯å¸¸ã«äººæ°ãªã常é£ããªãã¸ããªãå¤ã ããã®ã§ï¼æ°ãã話é¡ã«ãªã£ã¦ãããªãã¸ããªã¯ãã®ä¸ã«åãããã¡ã«ãªã£ã¦ãã¾ãã¾ãï¼
ããã§ï¼ä»åã¯ãããã®åé¡ã解決ãã¹ãï¼GitHub ã®ãã¬ã³ãã¯ã©ã¤ã¢ã³ã Trendy ã Electron ãã¼ã¹ã§ã¤ããã¾ããï¼
Trendy - Menubar App to Keep You in the Trend
Trendy 㯠GitHub ã®ãã¬ã³ããã¼ã¸ãç£è¦ãï¼ãã¬ã³ãã«æ°ãããªãã¸ããªãç¾ããæã«éç¥ãããï¼éå»ã«ãã¬ã³ãã«æãã£ããªãã¸ããªã管çãã¦å¾ããæ¤ç´¢ãããã§ãã¾ãï¼ã¡ãã¥ã¼ãã¼ã®ä¸ã«å¸¸é§ããã®ã§ï¼ãã¤ã§ãã¡ãã¥ã¼ãã¼ããã¢ã¯ã»ã¹ã§ãã¾ãï¼
README ãæ¸ãããï¼ä»åã¯åå¼·ããã㦠Landing Page æ¸ããããã¾ãããï¼ãã£ãããªã®ã§ç°¡åã«ç´¹ä»ãã¾ãï¼
ã¤ã³ã¹ãã¼ã«
GitHub ã®ãªãªã¼ã¹ãã¼ã¸ ããã使ãã® OS ã«åããã¡ã¤ã«ããã¦ã³ãã¼ãã§ãã¾ãï¼OS X 㯠Trendy.app
ãå
¥ã£ã¦ããã®ã§ï¼ããããã®ã¾ã¾ä½¿ã£ã¦ãã ããï¼Windows ã®å ´å㯠trendy.exe
ãï¼Linux ã®å ´å㯠trendy
ã¨ãã executable ãããã®ã§ãããããããã使ã£ã¦ãã ããï¼ã¤ã³ã¹ãã¼ã«ã¯ä¸è¦ãªã®ã§å¥½ããªå ´æã«ç½®ã㦠OK ã§ãï¼
ãã¡ã¤ã«ãå®è¡ããã¨ï¼Trendy ã®ã¡ãã¥ã¼ãã¼ã¢ã¤ã³ã³ãåºãã¨åæã«ååã¯ç£è¦ããããã¬ã³ããé¸æããã¦ã£ã³ãã¦ãç«ã¡ä¸ããã¾ãï¼
ä¸ã«ãããã©ã¼ã ã§ã¤ã³ã¯ãªã¡ã³ã¿ã«æ¤ç´¢ãã§ããã®ã§ï¼æ°ã«ãªãè¨èªãããã¤ãé¸ãã ã Go! ãã¿ã³ãæ¼ãã¾ãï¼
Trendy ãåãã¬ã³ããã¼ã¸ãã¹ã¯ã¬ã¤ãã³ã°ã㦠GitHub API ã使ã£ã¦ãªãã¸ããªã®æ å ±ãåéããå¾ï¼ã¡ãã¥ã¼ãã¼ã®ä¸ã«ããã¢ã¤ã³ã³ã赤ããªãã¨æãã¾ãï¼ ãã以éã¯1æéã«1åã®ãã¼ã¹ã§ãã¬ã³ããã¼ã¸ãè¦ã«è¡ã£ã¦æ°çãªãã¸ããªãæ¢ãã¾ãï¼
使ãæ¹
'New' ã¿ã
æ°çã®ãªãã¸ããªã表示ããã¾ãï¼ãã§ãã¯æ¸ã¿ã®ãªãã¸ããªã¯ãã¦ã¹ãªã¼ãã¼ããã¨å·¦ã®æ¹ã«è¡¨ç¤ºãããã§ãããã§ãã¯ãã¼ã¯ãã¿ã³ãæ¼ã㨠'New' ã¿ãããåé¤ããã¾ãï¼
'Current' ã¿ã
ç¾å¨ã®ãã¬ã³ããã¼ã¸ã®ã©ã³ãã³ã°ã§ãï¼
'All' ã¿ã
Trendy ãä»ã¾ã§åºã¦ããåéãããã¹ã¦ã®ãªãã¸ããªæ å ±ä¸è¦§ã§ãï¼
éç¥æ©è½
Trendy ã¯1æéã«1度ã¹ã¯ã¬ã¤ãã³ã°ãè¡ãï¼æ°ãããªãã¸ããªãè¦ã¤ããæã¯ã¡ãã¥ã¼ãã¼ã®ã¢ã¤ã³ã³ã®è²ãå¤ãã¦éç¥ãã¾ãï¼ç·æ¥æ§ã®ããéç¥ã§ã¯ãªãã®ã§ï¼ãã®ç¨åº¦ã®ç®ç«ããªãã®éç¥ãä¸çªæ°ã«å ¥ã£ã¦ãã¾ãï¼
éç¥æ | é常æ |
---|---|
çµã¿è¾¼ã¿ãã©ã¦ã¶
ãªãã¸ããªããªãã¸ããªä½è ã®ãã¼ã¸ãªã©ã¸ã®ãªã³ã¯ãã¯ãªãã¯ããã¨ï¼å¤é¨ã®ãã©ã¦ã¶ã§ã¯ãªãï¼ã¢ãã¤ã«ã¢ããªã®ããã«ãã®å ´ã§ãã©ã¦ã¶ãéãã¾ãï¼éããã¼ã¸ã¯ï¼ã¦ã£ã³ãã¦ãå°ããå ´åã¯ã¢ãã¤ã«ãã¼ã¸ï¼å¤§ããå ´å㯠PC ãã¼ã¸ã«ãªãã¾ãï¼
ãµã¤ãã¡ãã¥ã¼
å³ä¸ã®3æ¬ç·ãã¿ã³ãæ¼ãã¨ãµã¤ãã¡ãã¥ã¼ãéãã¾ãï¼ã¡ãã¥ã¼å ã§ã¯æ¬¡ã®3ã¤ã®æ©è½ã使ãã¾ãï¼
- æ¤ç´¢ãã©ã¼ã ãããªãã¸ããªãæ¤ç´¢ã§ãã¾ãï¼æ¤ç´¢ã¯ã¼ããå ¥ã㦠Enter ãæ¼ãã¨ï¼ç¾å¨ã®ã¿ãå ã®ãªãã¸ããªãçµãè¾¼ã¿æ¤ç´¢ããã¾ãï¼
- ç¾å¨ã®ã¿ãããã¬ã³ãã§ãã£ã«ã¿ãªã³ã°ãããã¨ãã§ãã¾ãï¼æ®æ®µã¯ãã¹ã¦ã®ãã¬ã³ããã¼ã¸ã®çµæãã¿ãå ã«è¡¨ç¤ºããã¦ãã¾ãï¼
- æä¸æ®µã§ã¯è¨å®ãã¡ã¤ã«ãéãããï¼æåã§æ´æ°ãããï¼ã¢ããªãçµäºãããã§ãã¾ãï¼
ã¡ãã¥ã¼ã¦ã£ã³ãã¦ã¨ãã¼ãã«ã¦ã£ã³ãã¦
ããã¾ã§ Trendy ã¯ã¡ãã¥ã¼ãã¼ã«çµ±åãããã¢ããªã ã¨ç´¹ä»ãã¾ãããï¼æ®éã®ã¦ã£ã³ãã¦ã§ä½¿ããã¨ãåºæ¥ã¾ãï¼
Windows ã§ã¯ã¿ã¹ã¯ãã¼ãä¸ã«ç¡ãã¨ã¡ãã¥ã¼ã¦ã£ã³ãã¦ã®ä½ç½®ããããããªã£ã¦ãã¾ãã®ã§ï¼ããã©ã«ãã§ãã®è¨å®ã«ãªã£ã¦ãã¾ãï¼
å¾è¿°ãã config.json
ãæ¸ãæããã¨ã¡ãã¥ã¼ã¦ã£ã³ãã¦ã¨ãã¼ãã«ã¦ã£ã³ãã¦ãåãæ¿ãããã¾ãï¼
ãã¼ãã«ã¦ã£ã³ãã¦æã¯æ¨ªå¹ ãå åãããã¨ãæ³å®ãã¦ï¼ãµã¤ãã¡ãã¥ã¼ã¯å¸¸ã«è¡¨ç¤ºããããã«ãªã£ã¦ãã¾ãï¼
GitHub API ãªããã
ã¹ã¯ã¬ã¤ãã³ã°ã¯å¯¾è±¡ãã¼ã¸ã®æ§æã«ä¾åãã¦è¿½å¾ããªãã¨ãããªãããï¼æ¥µåã¹ã¯ã¬ã¤ãã³ã°ã«é ¼ããªããããªè¨è¨ã«ãªã£ã¦ãã¾ãï¼Trendy ã§ã¯æä½éã®æ å ±ï¼ãªãã¸ããªåã¨ä½è åï¼ã ãã¹ã¯ã¬ã¤ãã³ã°ã§åéãï¼ãªãã¸ããªã®ãã®ä»ã®æ å ±ã¯ GitHub API ã使ã£ã¦ãã¾ãï¼
ãã°ã¤ã³ãã¦ããªãå ´åã¯1æéã«60åãã API ãå¼ã¹ãªãããï¼ã¹ã¯ã¬ã¤ãã³ã°å¯¾è±¡ãå°ãå¤ãã¨ãã®å¶éã«ã²ã£ããã£ã¦ãã¾ãã¾ãï¼ãã®å ´åã¯ã¦ã£ã³ãã¦å ã«èµ¤ãã¢ã©ã¼ããã¤ã¢ãã°ã表示ããï¼ãã°ã¤ã³ãä¿ããã¾ãï¼
'login' ãªã³ã¯ãã¯ãªãã¯ããã¨ãã°ã¤ã³ã¦ã£ã³ãã¦ãéãã®ã§ï¼ãã°ã¤ã³æ å ±ãå ¥åãã¦ãã°ã¤ã³ãã¦ãã ããï¼2段éèªè¨¼ã«ã対å¿ãã¦ãã¾ãï¼ãã㧠API ãªãããã 60 ãã 5000 ã¾ã§å¢ããã®ã§ï¼ä¸è¨ã¨ã©ã¼ã¯åºãªããªãã¯ãã§ãï¼
ã«ã¹ã¿ãã¤ãº
ä¸è¨ã®2ã¿ã¤ãã®ã¦ã£ã³ãã¦ãå«ãï¼ããã¤ãã®é ç®ãã«ã¹ã¿ãã¤ãºå¯è½ã§ãï¼è©³ãã㯠README ã«æ¸ãã¾ããï¼
Electron + TypeScript + React
TypeScript 1.6 ã beta ã«ãªã£ãé ã«ã¤ããã¯ãããã®ã§ï¼ä»å㯠renderer ããã»ã¹å´ã main ããã»ã¹å´ãä¸¡æ¹ TypeScript ã§ã¤ãã£ã¦ã¿ã¾ããï¼ä½¿ã£ã¦ã¿ãããã§ã®ææ³ã¯ Qiita ã®ã»ãã«ãç°¡åã«æ¸ãã¾ãããï¼
Qiita - TypeScript1.6 + React æ¸ãã¦ã¿ã¦ããã£ããã¤ã³ãã¨ã
ã¡ã½ããåããã¼åã®ééããªã©ï¼ãã£ãããã¹ã大ä½æ¾ã£ã¦ãããã®ã§æ¦ãè¯ãæãã§ãï¼
ã¾ã¨ã
GitHub ã®ãã¬ã³ããã¼ã¸ã¯ã©ã¤ã¢ã³ã Trendy ãã¤ããã¾ããï¼
å 㯠æå¼·ã®Twitterã¯ã©ã¤ã¢ã³ãæ¦äº ã¨ããã®ã§ã¼ã¡ã¼ã¡ã¢ããªãã¤ãã£ã¦ãã¦ï¼ã¡ãã£ã¨æ¯æãã«åã ããå°ã£ã¦ãããã¬ã³ããã¼ã¸ãæ¹åãããç¨åº¦ã®æ°æã¡ã ã£ãã®ã§ããï¼ãªãã ããã ã§æéãããã£ã¦ãã¾ãã¾ããâ¦
OS X 㨠Ubuntu ã§ä½¿ã£ã¦ããæãã§ã¯ï¼ä»ã®ã¨ããåé¡ãªãåãã¦ããããã§ãï¼ãããã°ã試ããã ããï¼