Skip to content

zacharywelch/rails-api-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

rails-api-template

A rails application template for APIs.

To see a sample of using Rails as an API check out rails-api-sample.

Installation

Before generating your API, you will need rails-api gem installed

gem install 'rails-api'

Usage

rails-api new [api_name] --skip-test-unit -m https://raw.githubusercontent.com/zacharywelch/rails-api-template/master/template.rb

What it does

  1. Adds the following gems

Several custom gems add behaviors needed by CareerBuilder APIs

  1. Runs bundle

  2. Runs the following generators

  • rspec:install
  • responders:install
  • partner_authentication:install
  1. Adds a sample Partner ID for development

  2. Removes ActionView and Sprockets from stack

  3. Adds json as default format for routes

  4. Configures rspec to exclude view, route, and controller specs

  5. Hooks up JsonResponder and PaginateResponder to responder chain

  6. Adds template for controller scaffold

  7. Configures New Relic

  8. Configures Code Climate

  9. Configures lograge and fluentd, to be consummed from Sumo Logic

  10. Creates sample config files and git ignores the original ones

  • config/database.yml
  • config/secrets.yml
  1. Adds basic Swagger file to act as documentation.

  2. Replaces README with markdown

  3. Customizes .gitignore file

  4. Creates initial github commit

Additional steps

Code Climate

Replace the badge placeholders in README.md with the markdown snippets from Code Climate.

TeamCity

Replace the badge placeholders in README.md with the markdown snippets from TeamCity.

About

application template for rails-api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages