Ruby on Rails Environment building

Source: Internet
Author: User
Tags ruby on rails

#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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.