Spika+DigitalOceanã§ï¼åã§ã¢ãã¤ã«ã¡ãã»ã³ã¸ã£ã¼ãµã¼ãã¹ãå§ããæ¹æ³
ãç¡æ²æ±°ãã¦ããã¾ãããã£ã¨ããSpikaã®ããã¯ã¨ã³ãã®æ¹ä¿®ãå®äºããå½åå©ããã¦ããã»ãã¥ãªãã£ã¼ããããã¯ã¨ã³ãã®ã¬ã¬ã·ã¼ã³ã¼ãã®åé¡ã解決ãã¾ãããå ¬éå½æã«çä¸æ°å³ã«disããã
ããã°æ¸ãã¾ããã
http://t.co/2zt94NPpoW
— cloverstudio (@cloverstudio1) October 20, 2013
ããã§ä¸æ®µè½ã¤ããã®ã§ããããã®æ®µéã§ã¯ã¾ã ä»å¾ã®æ¹ä¿®ã®æ¹åæ§ã決ã¾ã£ãã ãã§ãã¾ã ã¾ã ãªç¶æ³ã§ãããï¼ï¼ææ«ã«çµãããã¾ãï¼ã¨ãè¨ã£ã¦ã®ãã®ã§ãããæ¬æ¥ã®åè¨ã®æ¹ããã¿ãã¿ãã ãã¦ãï¼ï¼ææ«ã¾ã§ããã£ã¦ãã¾ãã¾ãããã¾ãã¾ã ã¾ã ã«ãã¬ãã¸ã¨ãããå¾ãªãæãã§ãããããã ãããã¹ãã±ã¼ã¹æ¸ãã¦ããã人ãå± ãã大æè¿ã§ãã
Â
ãã®éã«ãããµã¼ãã¼ã¤ã³ã¹ãã¼ã«åºæ¥ãã¼ãï¼ï¼ï¼ãã¨åãåãããã»ã¨ãã©æ¯æ¥ï¼éã¯è²°ã£ã¦ãã¦ãæè¿ã¯æµ·å¤ããã®åãåããã¨ãããã¯ã¬ã¼ã ãå¤ããªã£ã¦æ¥ã¾ãããå¼ç¤¾ã¯ã¯ãã¢ãã¢ã®ä¼ç¤¾ã§ãããSpikaã¯åãè±èªããã¿ã¯ã½ã§è±èªã§åºããã®ãåå«ãªã®ã§ã¾ãã¯æ¥æ¬ãã¡ã¤ã³ã«ãã£ã¦è¡ããã¨æã£ã¦ãã¾ããæµ·å¤åãã«ãã¼ã±ãã£ã³ã°ããæã¯æ¥æ¬çºï¼ã¿ãããªæãã§é²åºãããã¤ããã§ããçµå±åèªèº«æ¥æ¬äºº(ãã¼ãã§ãã)ã§èªåã§ã³ã¼ããæ¸ãã¦ãã®ã§ãã
Â
ãã¦ãã¦åç½®ããé·ããªãã¾ããããSpikaã¯éçºç°å¢ã®è¨å®ã«Vagrantã使ã£ã¦ãã¾ããVagrantã¯å ¬éç´å¾ã«@yandoãããVagnrantãã¡ã¤ã«ãæ¸ãã¦ãããã®ããã£ããã§ä½¿ãå§ãã¦ã¾ã便å©ã§ãããããã®å¾æ®éã«åè¨ã®æ¡ä»¶ã¨ãã§ãVagrantã使ãæ§ã«ãªã£ã¦ãããVagrantç¡ãã§ã¯çãã¦è¡ããªãã¨æãã¾ãã
ã§ãã¡ãã£ã¨åã«ãããªè¨äºãè¦ã¤ãã¦
Â
Â
ãã£ã¦ã¿ãããããç°¡åãSpikaã§ããµã¼ãã¼ã¤ã³ã¹ãã¼ã«åºæ¥ãã¼ãï¼ï¼ï¼ãã£ã¦åãåãããè¯ãè²°ãã®ã§ããã§ã¾ã¨ãã¦ããã°ããã¡ãã¡åçããå¿ è¦ãç¡ããã®ãªã³ã¯ãéãã°è¯ãã¨æãã®ã§ãè½ã¡çãããSpikaãã¼ã¸ã§ã³ãæ¸ããã¨æã£ã¦ãã¾ããã
 ã¾ãã©ãããªãã§ãä¸åº¦æ¹ä¿®å¾ãã¼ã¸ã§ã³ã§ãããã¯ã¨ã³ã+iOS+Androidã®æ§ç¯æ¹æ³ãã¾ã¨ãããã¨æãã¾ãã
Â
Spikaããã¯ã¨ã³ããDigitalOceanã§ç«ã¡ä¸ããæ¹æ³
ã¾ãã¯ãç¹°ãè¿ãã«ãªãã¾ããã
ãåèã«ãã¦ä¸åº¦ãµã¼ãã¼ãç«ã¡ä¸ããæã¾ã§ãã£ã¦ãã ããããã®å¾
vagrant destroy
 ã§ãä¸æ¦éãã¦ãã ããã 次ã«Spika-Serverã®ã³ã¼ãã https://github.com/cloverstudio/Spika-Server  ãããã¦ã³ãã¼ããã¾ããããã§ãVagrantfile.digitaloceanã¨Vagrantfileãããã®ã§ãããVagrantfileã®æ¹ã¯ãã¼ã«ã«ã®Virtualboxã§ç«ã¡ä¸ããæã«ä½¿ãã¾ããä»åã¯Vagrantfile.digitaloceanã®æ¹ã使ãã®ã§ãVagrantfileã¯é©å½ãªååã«å¤æ´ãã"Vagrantfile.digitalocean"ã"Vagrantfile"ã«ååãå¤æ´ãã¾ãã"provider.client_id"ã¨"provider.api_key"ã¨"provider.ssh_key_name"ã¯ããããèªåã®ç°å¢ç¨ã«å¤ãè¨å®ãã¦ãã ããããã®å¾
vagrant up --provider=digital_ocean --provision
ã§ãµã¼ãã¼ãèµ·åãã¾ããæåã®ã¹ãããã§æåãã¦ãããåé¡ãªããµã¼ãã¼ã®è¨å®ã¢ãããå®äºããã¯ãã§ããã³ãã³ãã®ååã«
Bringing machine 'default' up with 'digital_ocean' provider...
[default] Using existing SSH key: SpikaDemo
[default] Creating a new droplet...
 [default] Assigned IP address: 192.241.214.51
ã¨ããã¨æãã®ã§ããã®IPã¢ãã¬ã¹ãæ§ãã¦ããã¦ãã ãããä¸éãå®äºããããæå¾ã«
please open http://ipaddress/wwwroot/install to finish setup
ã¨è¡¨ç¤ºãããã®ã§ããã®ipaddressã®é¨åããµã¼ãã¼ã®IPã¢ãã¬ã¹ã«å¤æ´ãã¦ãã ããããã®å ´åã¯ã"http://192.241.214.51/wwwroot/install" ããã©ã¦ã¶ã§éãã¾ããã§ãè²ã
表示ãããã¨æãã®ã§ãããããã¯å¿
è¦ãªæ
å ±ãªã®ã§ä¿åãã¦ããã¦ãã ãããããã§ããã¯ã¨ã³ãã®æ§ç¯ã¯å®äºã§ãããã£ã¡ãç°¡åï¼ï¼ï¼
Create User OK: email is '[email protected]',password is 'YTqcbnJ7', support user id 61baafdaa680faa92c18dd81d20002c0Â
ã¨è¡¨ç¤ºããã¦ããã¨æãã®ã§ããããã®ã¡ã¼ã«ã¢ãã¬ã¹ã¨ãã¹ã¯ã¼ãããµãã¼ãã¦ã¼ã¶ã¼ã®ã¢ã«ã¦ã³ãã«ãªãã¾ãããã®ã¾ã¾Spikaã®ã¯ã©ã¤ã¢ã³ãã¢ããªãããã°ã¤ã³ãã¦ãã ãããã¡ãªã¿ã«ãµã¼ãã¼ã«ãã°ã¤ã³ããã«ã¯ãVagrantfileã®å ´æã§ã
vagrant ssh
ã¨ããã ãã§ããVagrantããã¼ã¼ã¼ï¼ï¼
Spika iPhoneã¢ããªã®ãã«ã
iOSã®ãã«ãã§ããäºã¯ã
- APIã®URLã®å¤æ´
- ãµãã¼ãã¦ã¼ã¶ã¼ã®IDã®ï¼ç¹ã®ã¿ã§ãã
ã¾ãã¯ãhttps://github.com/cloverstudio/Spika-iOS ããææ°çããã¦ã³ãã¼ããã¦ãã ããã
å¤æ´ããã®ã¯ãããã¨ããã®URLãå¤æ´ãã¾ãããã®å ´åã¯ãhttp://192.241.214.51/wwwroot/apiã¨ãã¾ãã次ã«ããã«ãµãã¼ãã¦ã¼ã¶ã¼ã®IDãè¨å®ãã¾ãããã®å ´åã¯ã61baafdaa680faa92c18dd81d20002c0ã¨ãªãã¾ããã§ããããã£ãããå®è¡ãã¿ã³ãæ¼ãã ãã§ããiOSã¯ä»¥ä¸ï¼ç°¡åã§ããï¼ï¼ï¼
Spika Androidã¢ããªã®ãã«ã
Androidã¯iOSããè¥å¹²ä½æ¥ãå¤ããªãã¾ããAndroidã®éçºç°å¢ã¯åºæ¥ã¦ããåæã§ããSpikaã¯Eclipseã使ã£ã¦éçºãã¦ãã¾ãã®ã§ãEclipseã§ãã«ããã¦ãã ãããã¾ãã¯ãã½ã¼ã¹ã https://github.com/cloverstudio/Spika-Android ãããã¦ã³ãã¼ããã¾ãã
â ããã¸ã§ã¯ãã¸ã®ã¤ã³ãã¼ã
File > Import > Existing Android Code Into ProjectÂ
ã§ããã¦ã³ãã¼ããããã©ã«ãã¨ããã¸ã§ã¯ãã«ã¤ã³ãã¼ããã¾ãã
Â
Â
Â
Â
Â
Â
Â
Â
Â
 â  Build TargetãGoogle APIsã«å¤æ´
 ããã¸ã§ã¯ãããããå³ã¯ãªã㯠> Properties > Project Build Targetã®é¨å㧠Google APIsã®ææ°çãé¸æãã¾ãã
â  Google Play Servicesãã¤ã³ãã¼ã
ã¤ã³ãã¼ãæ¹æ³ã¯ä¸è¨ã®ãµã¤ããåèã«ãã¦ãã ããã
 Macã®äººã¯ãã¡ããåèWindowsã®äººã¯ãã¡ããåèLinuxã®äººã¯èªåã§ããã°ã£ã¦ä¸ããã
Â
ã¤ã³ãã¼ããå®äºãããã ããã¸ã§ã¯ãããããå³ã¯ãªã㯠> Properties > Java Build Path > Projectã®é¨å㧠ã¤ã³ãã¼ãããGooglePlayServicesã®ããã¸ã§ã¯ããé¸æãã¦ä¸ããã
Â
â APIã®URLã®å¤æ´ããµãã¼ãã¦ã¼ã¶ã¼IDã®è¨å®
ãã¨ã¯ãiOSåæ§ã«APIã®URLãå¤æ´ãã¦ãµãã¼ãã¦ã¼ã¶ã¼ã®IDãè¨å®ãã¾ããå¤æ´ã¹è§ã¯ãããã¨ããã§ããç¹°ãè¿ãã«ãªãã¾ãããURLã¯ãã®å ´åãhttp://192.241.214.51/wwwroot/apiã¨ãªãããµãã¼ãã¦ã¼ã¶ã¼ã®IDã¯61baafdaa680faa92c18dd81d20002c0ã«ãªãã¾ãã
以ä¸ã§ãSpikaå ¬éæ¹æ³ã¨ãªãã¾ãããµã¼ãã¹ã¨ãã¦æç«ãããçºã«ã¯ããã«ããã·ã¥éç¥ã®è¨å®ãå¿ è¦ã«ãªãã¾ãããããã¯ã¾ãã®æ©ä¼ã«æ¸ãããã¨æãã¾ãã