Giter Site home page Giter Site logo

rails-api-template's Introduction

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.

rails-api-template's People

Contributors

lzaychik avatar ssuttner avatar tsramanathan avatar zacharywelch avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.