9arrows ã (MySQLã§) 試ãã¦ã¿ã¾ãã
æ¬å®¶ãã 9arrows ã®ææ°çãè½ã¨ãã対å¿ãããã¼ã¸ã§ã³ã® Rails ãå ¥ãã¦ããã¾ãããã¼ã¿ãã¼ã¹ã«ã¯ PostgreSQL ã使ç¨ããã¿ããã§ãããä»å㯠MySQL ã§å¼·å¼ã«åããã¦ã¿ã¾ãã
% svn co http://9arrows.googlecode.com/svn/trunk/ 9arrows % gem install rails -v 2.1.0
æ©éãdatabase.yml ãæ¸ãæ¿ãã¦ãrake ã³ãã³ãããããã¾ãããããã®åã« MySQL ã«ãã¼ã¿ãã¼ã¹ãç¨æããªãã¨ãããªãã§ããã
development: adapter: mysql database: 9arrows_development username: root password: host: 127.0.0.1 (snip)
% mysql -u root -p mysql> create database 9arrows_development; mysql> create database 9arrows_production; mysql> create database 9arrows_test; mysql> exit; % cd 9arrows % rake db:schema:load
rake ã³ãã³ãã®çµæãè¦ãã«ããã¼ãã«ã®ä½æã¯ãã¾ããã£ã¦ã¾ãããåæãã¼ã¿ã®ç»é²ã§å¤±æãã¦ããã£ã½ãã§ããããã§ãschema.rb ã®ä¸ã§ execute ã§å¼ã°ãã¦ããä¸èº«ãæåã¤ã³ãµã¼ããããã¨ã«ãã¾ããã¡ãªã¿ã«ãdatetime ã®ãã©ã¼ãããã PostgreSQL ã¨å¾®å¦ã«éãã®ãããã®ã¾ã¾ã ã¨ã¤ã³ãµã¼ãã§ããªãã£ãã§ãã¡ããã£ã¨ã ãæãå ãã¦ã¾ããã
-INSERT INTO mst_messages VALUES (2, 'project_name', 1, 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 1, NULL, '2007-07-08 19:32:00+09', NULL, '2007-07-08 19:39:20.984+09'); +INSERT INTO mst_messages VALUES (2, 'project_name', 1, 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 'ããã¸ã§ã¯ãå', 1, NULL, '2007-07-08 19:32:00', NULL, '2007-07-08 19:39:20.984');
ä½æãããã¼ã¿ãã¼ã¹ã«æµãè¾¼ã¿ã¾ãã
% rake db:schema:load > insert.sql (ä¸è¿°ã®ããã«ã¡ãã£ã¨ããã£ã¦...) % mysql -u root -p mysql> use 9arrows_developemt; mysql> charset utf8; mysql> source insert.sql; mysql> exit;
"ERROR 1366 (HY000): Incorrect string value" ãããã®ã¨ã©ã¼ãã§ã¦ããã¾ãè¡ããªã«ãããªãæåã³ã¼ãã®ç¢ºèªãã
mysql> show variables like 'character%'; +--------------------------+-------------------- | Variable_name | Value +--------------------------+-------------------- | character_set_client | utf8 | character_set_connection | utf8 | character_set_database | utf8 | character_set_filesystem | binary | character_set_results | utf8 | character_set_server | utf8 | character_set_system | utf8
ãã¦ããã®ã¾ã¾ã 㨠auto increment 㪠id ãå¢ãã¦ããªãã¨æãã®ã§ãsequence ã® current å¤ãå¤æ´ããã㨠setval ããããå¼ã³ãããªãã¨æã£ãã®ã§ããããããªé¢æ°ã¯ãªãã¨æããã¾ãã
mysql> SELECT setval('mst_messages_id_seq', max(id)) FROM mst_messages; ERROR 1305 (42000): FUNCTION 9arrows_development.setval does not exist
ãããã£ï¼ã¨æããã²ã¨ããã調ã¹ã¦ã¿ã¾ããããã©ããã MySQL ã§ã¯æ±ããªãããã§ããã©ããããããªã..ã¨æããã®ã®ãshow table status ã§ç¢ºèªãã¦ã¿ãã¨ãã¡ãã㨠auto increment ããã¦ããã§ã¯ãªãã§ãã!ï¼
MySQL ã§ã¯ãããã¦å¼ããã§ãããã£ããããã§ãã (^^;
mysql> show table status; +-------------------+------+----------------+-------------+----------------+ | Name | Rows | Avg_row_length | Data_length | Auto_increment | +-------------------+------+----------------+-------------+----------------+ | dat_calls | 0 | 0 | 16384 | 1 | | dat_callusers | 0 | 0 | 16384 | 1 | | dat_eventfiles | 0 | 0 | 16384 | 1 | | dat_events | 0 | 0 | 16384 | 1 | | dat_eventusers | 0 | 0 | 16384 | 1 | | dat_milestones | 0 | 0 | 16384 | 1 | | dat_mylogcmts | 0 | 0 | 16384 | 1 | | dat_mylogs | 0 | 0 | 16384 | 1 | | dat_projectcomps | 0 | 0 | 16384 | 1 | | dat_projectlogs | 0 | 0 | 16384 | 1 | | dat_projects | 0 | 0 | 16384 | 1 | | dat_projectusers | 0 | 0 | 16384 | 1 | | dat_taskcmts | 0 | 0 | 16384 | 1 | | dat_taskfiles | 0 | 0 | 16384 | 1 | | dat_taskhistories | 0 | 0 | 16384 | 1 | | dat_tasks | 0 | 0 | 16384 | 1 | | dat_taskusers | 0 | 0 | 16384 | 1 | | mst_compositions | 29 | 564 | 16384 | 30 | | mst_messages | 175 | 374 | 65536 | 198 | | mst_templates | 2 | 8192 | 16384 | 3 | | mst_tpevents | 3 | 5461 | 16384 | 4 | | mst_tpmilestones | 4 | 4096 | 16384 | 5 | | mst_tptasks | 22 | 744 | 16384 | 23 | | mst_users | 1 | 16384 | 16384 | 2 | +-------------------+------+----------------+-------------+----------------+ 24 rows in set (0.02 sec)
ã¨ãããã¨ã§ãåé¡ãªããããªã®ã§æ°ãåãç´ãã¦èµ·åãã¦ã¿ã¾ãã
# å¿
è¦ãããã°ãtestãproduction ç°å¢ãåæ§ã«è¨å®ããä»å㯠development ã ãã§é²ãã¾ãã
% ruby script/server => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails 2.1.0 application starting on http://0.0.0.0:3000 ... DEPRECATION WARNING: config.action_view.cache_template_extensions option has been deprecated and has no affect. Please remove it from your config files. See http://www.rubyonrails.org/deprecation for details. (called from send at c:/ruby/ruby-186-25/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initialize r.rb:455)
ãªãã¦ãã°ãåºã¦ãã¾ãããã¨ããããç¡äºèµ·åããããã§ãã
http://localhost:3000/ ã«ã¢ã¯ã»ã¹ããã¨ããã°ã¤ã³ID/ãã¹ã¯ã¼ããæå®ãã¦ãã°ã¤ã³ããããæ°è¦ã¦ã¼ã¶ã¼ãç»é²ãããã¨ã«ãªãã¾ããæ°è¦ã«ã¦ã¼ã¶ã¼ãç»é²ããã«ã¯ã¡ã¼ã«ãµã¼ãã®è¨å®ã¨ãããã¦ãããªãã¨ãããªããããªã®ã§ãã²ã¨ã¾ãåæè¨å®ããã¦ãããã°ã¤ã³ID ã§éãã¾ãã
# mst_users ãã¼ãã«ã® login_id ãè¦ã¦ããã¹ã¯ã¼ãã¯åã§ã
ninearrows/ninearrows
ãã°ã¤ã³ããã¨ããã¸ã§ã¯ãä½æç»é¢ã«ãªãã¾ããã¾ããããã¸ã§ã¯ã管çã¢ããªã§ããã¸ã§ã¯ãããªãã£ããæå³ããªãã®ã§ããããããã£ã¦æãã§ããããã¸ã§ã¯ãã®ãã³ãã¬ã¼ãã¯ãã·ã¹ãã éçºç³»ãã¨ãWEB製ä½ç³»ãã®2ã¤ããé¸ã¹ã¾ããåè
ãé¸ãã§ããã¾ãã
ããã¸ã§ã¯ããä½æããã¨ãTodoãEventãInformationãMember 㧠4åå²ãããç»é¢ãéãã¾ããããã DashBoard ã®ããã§ãããååã®ã¡ãã¥ã¼ã«ã¯ãWBSãGanttãCalendarãFile ã並ã³ã¾ãããããã®ä¸ã§ããã¸ã§ã¯ããã¿ãå½¢å¼ã§è¤æ°ä¸¦ã¹ãããããã«ãªã£ã¦ããã®ã§ããã«ãããã¸ã§ã¯ã管çãã§ãããã§ãããã(å®å ¨ã«è¦ãç®ã ãããæ©è½ã追ã£ã¦ãã¾ã)
DashBoard ã®ç»é¢ã¯åç §ãªã³ãªã¼ã
WBS 画面ã«ã¯å ã»ã©é¸æãããã³ãã¬ã¼ã㧠WBS ããã§ã«æããã¦ãã¾ããé ç®ã¯ãã¿ã¹ã¯ãæ å½è ãæéãç¶æ³ãä¾é ¼è ããã©ãã° & ããããã§åã®ä¸¦ã³ã¯å ¥ãæ¿ãããã¾ããã¿ã¹ã¯ã®é ç®ã«ã¯ããã¤ã«ã¹ãã¼ã³ã¨ã¤ãã³ããããã¦ãã ã®ã¿ã¹ã¯ã追å ã§ãã¾ããã¾ã親ã¿ã¹ã¯ãã¯ãªãã¯ãããã¨ã§åã¿ã¹ã¯ããã°ã«ã§ãã¾ãã
Gantt の画面ã¯ãWBS ã®ç»é¢ã¨åã縦軸ã§æ¨ªè»¸ãæéã«ãªãã¾ããGantt ããã§ã WBS ããã§ãåæ§ã«æ å½è ãæéã®ç·¨éã¯ã§ããããéã«ä¸¡æ¹ã並ã¹ã¦è¦ããã¨ãªãã¨ã¤ããã®ããªã
Calendar ã¯ãã®ã¾ãã¾ãã¿ã¹ã¯ããã¤ã«ã¹ãã¼ã³ã®è¿½å ã¯ããããã§ãã§ãã¾ãããã ããGoogle Calendar ã»ã©ã®æä½æ§ã¯ãªãã¿ããã
Files の画面ã§ã¯ããã¡ã¤ã«ã管çã§ãã¾ãããã©ã«ãæ§é ãã¨ããã®ã¯ããããSCM ã¨é£æºãã¦ããããã§ã¯ãªãã§ããã¡ãªã¿ã«ãã©ã«ãã¯ã¤ããã¾ãããããªããã¢ãããã¼ãã¯ãã¾ãããã¾ããã§ãããã¢ãããã¼ããããã¡ã¤ã«ã¯ 9arrows_home/public/files ã«ã¯ããã¯ããç´ ç´ã« SCM ã¨é£æºãã¦ãªãã¸ããªãã©ã¦ã¶ã¿ãããªç»é¢ã«ãã¡ããã°ããã£ãã®ã«ã¨æãã®ã§ãã..ã
ãã£ã¨ãããªã¨ããã ã¨æãã®ã§ãæå¾ã« ERD ãçºãã¦ã¿ã¾ãã
- 9arrows's ERD
ãã¼ãã«æ°ã¯ããã»ã©å¤ããªãã§ãããã²ã¨ã¾ãä»æ¥ã¯ããã¾ã§ã
# 9arrows 㯠GPLv3 ãªãã ããªã... (^^;
åè
- ベーシスト兼ソフトウェアエンジニアのブログ 9arrowsを使ってみる。。。あれ?うむむ。
- æ¹åããããããã¤ã³ãã®æ示
- 9arrowsをさっそく改造 | nautilus note the Room
- ã³ã¡ã³ãããã
- 9ArrowsをMySQLで入れるのと便利な改造 | nautilus note the Room
- è¨äºå 容ãæ¶ãã¦ããã®ã§ Google ãã£ãã·ã¥ãã
- タスク共有やプロジェクト管理が可能でガントチャート表示もできる国産オープンソースツール「9Arrows」を使ってみた - GIGAZINE
- screenshot ãå å®