Skip to content
This repository

Rails bootstrap

This branch is 0 commits ahead and 70 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 spec
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 .yardopts
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

Locomotive, Rails base application

Build status

Base Rails application.

Quick start

Clone application as new project with original repository named base-app

git clone git://github.com/fs/rails3-base.git --origin base-app [MY-NEW-PROJECT]

Create your new repo on GitHub and push master into it. Make sure master branch is tracking origin repo.

git remote add origin git@github.com:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git
git push -u origin master

Setup configuration files

cp config/database.yml.example config/database.yml

Install gems and enable rvm integration with Bundler (the “bin” directory is added to your path each time you cd into a project directory with binstubs)

bundle install --path vendor --binstubs
chmod +x $rvm_path/hooks/after_cd_bundler

Run migrations and prepare test database

rake db:migrate
rake db:test:prepare

Make sure all tests are green

rspec spec

Optionally you can seed the development database with sample data

rake db:seed

..and finally generate project documentation

bundle exec yard doc

(documentation will be generated in `./tmp/doc' folder)

How to update existing project with new changes from base-app repo

You can fetch latest changes from base-app repository and merge or cherry-pick commits

git fetch base-app
git merge base-app/master

# fix conflicts
# commit
# test

Implemented core features

  • basic users authentication with Devise
  • simple frontend made with twitter bootstrap
  • activeadmin panel with customized section for managing users
  • preconfigured rspec along with factory_girl, capybara and should matchers
  • ready for deploy on heroku (gem: heroku_san)
Something went wrong with that request. Please try again.