Creating a Service
Open a terminal window, navigate to the directory where you want to store the new service and execute
rails new my_service -m https://raw.github.com/OceanDev/ocean-rails/master/template.rb
If this reports that Rails isn't installed, you may have to tell RVM to use a specific gemset:
rvm use firstname.lastname@example.org
Y to all overwrite questions. Next change into the new directory:
RVM will detect, through the use of an automatically installed
.rvmrc file, that you are entering this directory for the first time and will ask you whether it should trust its contents or not. Answer
config/config.yml to your installation.
API_PASSWORDto the password you wish MyService to use when authenticating with the Auth service.
BASE_DOMAINto your installation's base domain (e.g.
Then run the tests, which all should pass:
Your new service application is now ready. You should now commit it to source control.