Created
February 20, 2012 08:51
-
-
Save jeriko/1868473 to your computer and use it in GitHub Desktop.
kickstart TODO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO | |
# ** see: https://gist.github.com/32e0c32677055ea94361 | |
# 1. init git repo | |
# git :init | |
# git :add => "." | |
# git :commit => "-a -m 'blank rails app'" | |
# # TODO add remotes? | |
# | |
# 2. create gemset / set up environment | |
# current_ruby = %x{rvm list}.match(/^=>\s+(.*)\s\[/)[1].strip | |
# run "rvm gemset create #{app_name}" | |
# run "rvm #{current_ruby}@#{app_name} gem install bundler" | |
# run "rvm #{current_ruby}@#{app_name} -S bundle install" | |
# create_file ".rvmrc", "rvm use #{current_ruby}@#{app_name} --create" | |
# --- or use RVM::Environment.new... etc. | |
# | |
# 3. get choices of what to install. | |
# # TODO | |
# | |
# 3. get keys for APIs (fog, hoptoad etc.) | |
# # TODO | |
# | |
# 4. install required gems | |
# # TODO add all gems to Gemfile | |
# run 'bundle install' | |
# | |
# 4. app config | |
# inject_into_file 'config/application.rb', after: 'config.filter_parameters += [:password]' do | |
# <<-eos | |
# config.generators do |g| | |
# g.stylesheets false | |
# g.form_builder :simple_form | |
# g.fixture_replacement :factory_girl, :dir => 'spec/factories' | |
# end | |
# eos | |
# end | |
# | |
# # TODO? run "echo '--format documentation' >> .rspec" | |
# | |
# 5. create database | |
# rake 'db:create', env: 'development' | |
# rake 'db:create', env: 'test' | |
# # or rake 'db:create:all?' | |
# | |
# 6. set up each app-facet | |
# db/ | |
# - use postgres | |
# - generate config.yml & .example | .gitignore | |
# | |
# app/views | |
# - use slim | |
# - use simple_form + nested + country_select | |
# - install simple_form [--bootstrap?] | |
# - init application layout (using css_snippets...) | |
# | |
# app/assets | |
# | |
# /stylesheets | |
# - use the_ruby_racer | |
# - use compass | |
# - use twitter_bootstrap | |
# - install css_snippets (e.g. sticky_footer) | |
# - init application.css.scss [manifest, body] | |
# | |
# /javascripts | |
# - use coffescript | |
# - use twitter_bootstrap_responsive | |
# - ... | |
# - init application.js.coffee [manifest, body] | |
# | |
# app/uploaders | |
# ... | |
# | |
# app/controllers | |
# - use inherited_resources | |
# - use (scopes, pagination etc.) | |
# - generate sessions controllers | |
# - generate application_controller.rb (with relevant before_filters) | |
# | |
# | |
# spec/ | |
# ... | |
# | |
# 7. rails cleanup | |
# remove_file 'public/index.html' | |
# remove_file 'rm app/assets/images/rails.png' | |
# remove_file 'app/views/layouts/application.html.erb' | |
# # TODO what else needs to be removed? | |
# remove_file 'README' | |
# | |
# 8. migrate database | |
# rake 'db:migrate', env: 'development' | |
# rake 'db:test:clone' | |
# | |
# 9. git housekeeping | |
# create_file 'log/.gitkeep' | |
# create_file 'tmp/.gitkeep' | |
# | |
# append_file '.gitignore', <<-GIT | |
# config/database.yml | |
# public/stylesheets/*.css | |
# public/javascripts/application.js | |
# tmp/**/* | |
# GIT | |
# | |
# # TODO .gitignores? | |
# | |
# 10. git final commit | |
# git add: '.' | |
# git commit: '-m "Platform45:Kickstart (codemonkey) for Rails 3' | |
# | |
# | |
# | |
# LATER | |
# ------------------------------------ | |
# | |
# rails g barista:install | |
# compass init rails . -r html5-boilerplate -u html5-boilerplate --force | |
# TODO | |
# ------------------------------------------------------ | |
# TODO generate your own layouts & shared files | |
# TODO jquery UI (gem? themed?) | |
# TODO google fonts (gem?) | |
# TO LOOK AT | |
#gem 'html5-boilerplate' | |
#gem 'barista' | |
#gem 'seed-fu' | |
# --------------------------------------------------------------- | |
# run "cp config/database.yml config/database.yml.example" | |
# run "echo 'config/database.yml' >> .gitignore" | |
# | |
# gem 'sorcery' | |
# # init files | |
# end | |
# | |
# facet authorization: 'cancan' do | |
# gem 'cancan' | |
# # generate "cancan:ability" | |
# end | |
# | |
# | |
# facet database: 'seed-fu' do | |
# gem 'seed-fu' | |
# file "lib/tasks/test_seed_data.rake", <<-END | |
# namespace :db do | |
# namespace :test do | |
# task :prepare => :environment do | |
# Rake::Task["db:seed_fu"].invoke | |
# end | |
# end | |
# end | |
# END | |
# # actually run at some point... | |
# end | |
# | |
# feature config: 'nifty' do | |
# #gem 'nifty-generators' | |
# # generate 'nifty:layout --haml' # necessary? | |
# # generate 'nifty:config' | |
# end | |
# | |
# | |
# facet uploads: 'carrierwave' do | |
# # TODO mkdir /public/uploads | |
# # TODO install gem | |
# end | |
# | |
# feature 'capistrano', :optional do | |
# gems << 'capistrano', group: :development | |
# # make Capfile | |
# end | |
# | |
# | |
# option testing: 'blah' do | |
# #gem "rails3-generators", :group => [ :development ] | |
# #gem "rspec-rails", :group => [ :development, :test ] | |
# #gem "factory_girl_rails", :group => [ :development, :test ] | |
# #gem "webrat", :group => :test | |
# #gem "ffaker", :group => :test | |
# #gem "autotest", :group => :test | |
# #gem 'shoulda', :group => :test | |
# #gem 'capybara', :group => :test | |
# | |
# # generate 'rspec:install' | |
# # inject_into_file 'spec/spec_helper.rb', "\nrequire 'factory_girl'", :after => "require 'rspec/rails'" | |
# | |
# # what else? | |
# end | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment