Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.62 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.62 KB

Rails Demo

Setting up a basic RESTful API with MVC structure in Rails and testing metrics and deploying on Heroku.

CodeClimate

Maintainability

Maintainability

Test Coverage

Test Coverage

TravisCI

Build Status

Build Status

Reproducing this Repo

Setting up AWS C9 environment: https://github.com/saasbook/courseware/wiki/Setting-up-Cloud9

SaaS book:

  • Chapter 4: Introduction to Rails
  • Chapter 5: Advanced Rails
  • Chapter 8: Test-Driven Development

CodeClimate: https://docs.codeclimate.com/

Test Suites:

rails generate rspec:install
rails generate cucumber:install
rails generate cucumber_rails_training_wheels:install
rails generate jasmine_rails:install

Guard: http://saasbook.github.io/courseware/rspec/guard.html

SimpleCov:

# at TOP of spec/rails_helper.rb:
require 'simplecov'
SimpleCov.start

Heroku: https://devcenter.heroku.com/articles/getting-started-with-ruby

  • Migration: heroku run rake db:migrate
  • Seed: heroku run rake db:seed

Figaro:

TravisCI: http://saasbook.github.io/courseware/devops/travis-ci-setup.html