Skip to content
A Rails starter app intended to be used as a starting point when developing new applications or as a sandbox.
Branch: master
Clone or download
Adam
Latest commit fb2b3b8 Apr 8, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Broke the tests, but making them better. Mar 31, 2016
bin Addeed 404 tests and fixed some step defs. Mar 14, 2016
config Broke the tests, but making them better. Mar 31, 2016
db Small updates after gem updates and installing on new linux. Mar 7, 2016
features Fixed non-slow tests. Apr 8, 2016
lib v1.0 Aug 13, 2015
log v1.0 Aug 13, 2015
public
script v1.0 Aug 13, 2015
test Addeed 404 tests and fixed some step defs. Mar 14, 2016
vendor/assets v1.0 Aug 13, 2015
.gitignore v1.0 Aug 13, 2015
.rubocop.yml Fixed some failures from last commit. Jan 10, 2016
.ruby-version Continued work on roles features. Mar 7, 2016
Gemfile Addeed 404 tests and fixed some step defs. Mar 14, 2016
Gemfile.lock Small updates after gem updates and installing on new linux. Mar 7, 2016
README.md Broke the tests, but making them better. Mar 31, 2016
README.rdoc
Rakefile
TODO Broke the tests, but making them better. Mar 31, 2016
TO_TEST Fixed non-slow tests. Apr 8, 2016
config.ru Addeed 404 tests and fixed some step defs. Mar 14, 2016
startup.sh

README.md

Rails Starter Application

Used as a starting point for developing new Rails applications, or just as a sandbox to play around with.

An example deployment can be found here: https://rails-starter-application.herokuapp.com/. If you would like the "Admin role within the application, let me know and I will give them to you.

Installation Instructions

  1. Install Git

    $ sudo apt-get install git-core
  2. Install NodeJS (or another JavaScript runtime library)

    $ sudo apt-get install nodejs
  3. Install RVM

    $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    $ curl -sSL https://get.rvm.io | bash -s stable
    $ source /home/$(whoami)/.rvm/scripts/rvm
  4. Install Ruby 2.2.1

    $ rvm install ruby-2.2.1
    $ rvm use 2.2.1
    $ rvm 2.2.1 do gem install bundler
    
  5. Install and setup Postgres

    $ sudo apt-get install libpq-dev postgresql-9.3
    $ sudo -u postgres psql
    $ create user "rails_starter_app" password 'rails_starter_app_pass';
    $ create database "rails_starter_app_dev" owner "rails_starter_app";
    $ create database "rails_starter_app_tst" owner "rails_starter_app";
    $ \q
    
  6. Clone the repository, install gems and setup database:

    $ git clone https://github.com/arosini/rails-starter-app.git
    $ cd rails-starter-app
    $ bundle install
    $ rake db:migrate
    $ rake db:migrate RAILS_ENV=test
    $ rake db:seed
  7. Install and setup Heroku

    $ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
    $ heroku login
    $ heroku git:remote -a rails-starter-application

Starting the Server

$ rails s

You can sign in to an admin account with the username 'admin@admin.com' and password 'asdqwe'.

Unit Tests

$ rake test TESTOPTS='--profile'

Integration Tests

$ cucumber [--format usage]

The following tags are available:

  • @create
  • @read
  • @search
  • @update
  • @delete
  • @slow
  • @navigation
  • @authentication
  • @authorization
  • @failure
  • @email

To run all the tests except the slowest tests, use the following command:

cucumber --tags ~@slow

Reports

$ rubocop
$ rails_best_practices
$ rubycritic app features
$ brakeman

Deploying

$ git push heroku master
$ heroku run rake db:migrate

Reference: https://devcenter.heroku.com/articles/getting-started-with-rails4

You can’t perform that action at this time.