A rails application template for APIs.
To see a sample of using Rails as an API check out rails-api-sample.
Before generating your API, you will need rails-api gem installed
gem install 'rails-api'
rails-api new [api_name] --skip-test-unit -m https://raw.githubusercontent.com/zacharywelch/rails-api-template/master/template.rb
- Adds the following gems
- rails-api
- rails
- jbuilder
- responders
- faker
- kaminari
- spring
- sqlite3
- activerecord-sqlserver-adapter
- tiny_tds
- annotate
- rspec-rails
- factory_girl_rails
- shoulda-matchers
- simplecov
- codeclimate-test-reporter
- newrelic_rpm
- exception_notification
- byebug
- okcomputer
- lograge
- fluentd
- fluent-plugin-record-modifier
- rack-cors
Several custom gems add behaviors needed by CareerBuilder APIs
-
Runs
bundle
-
Runs the following generators
rspec:install
responders:install
partner_authentication:install
-
Adds a sample Partner ID for development
-
Removes
ActionView
andSprockets
from stack -
Adds json as default format for routes
-
Configures rspec to exclude view, route, and controller specs
-
Hooks up
JsonResponder
andPaginateResponder
to responder chain -
Adds template for controller scaffold
-
Configures New Relic
-
Configures Code Climate
-
Configures lograge and fluentd, to be consummed from Sumo Logic
-
Creates sample config files and git ignores the original ones
- config/database.yml
- config/secrets.yml
-
Adds basic Swagger file to act as documentation.
-
Replaces README with markdown
-
Customizes .gitignore file
-
Creates initial github commit
Replace the badge placeholders in README.md
with the markdown snippets from Code Climate.
Replace the badge placeholders in README.md
with the markdown snippets from TeamCity.