Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

Rails製CRM、Fat Free CRMを日本語化してHerokuでお試し

Fat Free CRMRailsCRM(顧客管理システム)です。
基本でもプロジェクトやら顧客管理やらに必要な機能が一通り揃っています。
また、プラグインによる拡張も可能であるため色々と遊び甲斐も。
内製ツールならこれで十分ですね。

作業環境

つくりかた

まずはgitよりリポジトリを引っ張ってきます。

$ git clone https://github.com/fatfreecrm/fat_free_crm.git /path/to/ffcrm
$ cd /path/to/ffcrm

次は日本語設定です。
config/setting.default.ymlの内容を次のように変更します

# Locale.
#------------------------------------------------------------------------------
# Default locale is American English.
#
# :locale: "en-US"
:locale: "ja"

ディレクトリ上でログインして、アプリをつくります。

$ heroku login
$ heroku apps:create

これやれば、

$ git remote -v
heroku	git@heroku.com:hoge-piyo-9999.git (fetch)
heroku	git@heroku.com:hoge-piyo-9999.git (push)
origin	https://github.com/fatfreecrm/fat_free_crm.git (fetch)
origin	https://github.com/fatfreecrm/fat_free_crm.git (push)

と、勝手にリンクしてくれます。
便利!


Heroku CLI経由で、データベースを生成&テストデータを突っ込みます。

$ heroku run rake db:migrate
$ heroku run rake ffcrm:demo:load

終わったら管理ユーザ作成です。

$ heroku run rake ffcrm:setup:admin USERNAME=admin PASSWORD=admin 
Running `rake ffcrm:setup:admin USERNAME=admin PASSWORD=admin` attached to terminal... up, run.5787
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git

To create the admin user you will be prompted to enter username, password,
and email address. You might also specify the username of existing user.

入力がでるので、
RET => RET => admin@example.com
とします。
次に確認画面が出るので、OKならyes

Username [admin]:    
Password [admin]: 
Email: admin@example.com

The admin user will be created with the following credentials:

  Username: admin
  Password: *****
     Email: admin@example.com

Continue [yes/no/exit]: yes
Admin user has been created.
$ heroku ps:scale web=1
$ heroku restart
$ heroku open

すると、
f:id:shuzo_kino:20140127222935p:plain
とログイン画面が出ます。やったね

実際の画面

テストデータは英語ですが...項目はちゃんと日本語になってます。
f:id:shuzo_kino:20140127222946p:plain