#api New rules
Rails New Companyname-projectname-web-api--api
#gem New rules
Bundle Gem Companyname-projectname-gem
#ローカルgemのbuild & Install
#ソース構造
Companyname-cloud
|--companyname-projectname-web-api
|--companyname-common-gem
#companyname-common-gemのgem name はcompanyname-common, Companyname-commonのbuild & Install (current DIRCTORYはCOMPANYNAME-CLOUD/COMPANYNAME-PROJECTNAME-WEB-API)
Cd.. /companyname-common-gem/bin && gem Uninstall Companyname-common && rake install && CD. /.. /companyname-projectname-web-api
#datastore環境構築と使用実例
Https://github.com/Agrimatics/active-model-cloud-datastore
#注意: はlinuxosで う, WINDOWSOSでGCLOUD-SDK (cloud-datastore-emulatorを including 飲む) をインストールしてください in the environment structure.
http://www.apps-gcp.com/google-cloud-sdk-install/
#datastore新規 cmd line う/db/companyname_cloud_datastore (precondition: cmd line う field に"tmp"フォルダがある? Memory: tmpがない そうだ)
Cloud_datastore_emulator Create Db/companyname_cloud_datastore
#開発環境用datastore Serviceを up able
Cloud_datastore_emulator Start--port=8180 Db/companyname_cloud_datastore
#テスト環境用datastore Serviceを up able
Cloud_datastore_emulator Start--port=8181 Db/test_datastore
#Test環境構築
#①rspec Navigation
Http://qiita.com/shizuma/items/8221544601aa3d0770d2
#rspec テスト Setting
Bundle EXEC Rails Generate Rspec:install
#create Spec
#create spec/spec_helper.rb
#②モックの use
Http://qiita.com/jnchito/items/640f17e124ab263a54dd
#③simplecovを using してコードのカバレッジを to measure able
http://qiita.com/itayan/items/c8f0e3d4217e35bf3d5d
Ruby on Rails Environment building