Skip to content

Instantly share code, notes, and snippets.

@coderdan
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderdan/8c8e34d3d111ba43977b to your computer and use it in GitHub Desktop.
Save coderdan/8c8e34d3d111ba43977b to your computer and use it in GitHub Desktop.
JobReady Service Application Template
# TODO: Bower initializer, dotenv at top, oauth/doorkeeper stuff
add_source 'https://nQPUkxkYvJdhiX87ansa@gem.fury.io/jobready/'
gem 'dotenv-rails'
multi = yes?('Does this app need multitenancy?')
sidekiq = yes?('Does this app need background processing with sidekiq?')
api_access = yes?('Is API access needed?')
if multi
gem 'apartment'
initializer 'apartment.rb', <<-CODE
Apartment.configure do |config|
config.excluded_models = %w{Tenant}
config.tenant_names = lambda{ Tenant.pluck :database }
config.persistent_schemas = ['shared_extensions']
end
CODE
end
if sidekiq
gem 'sidekiq'
gem 'sinatra', require: false
gem 'apartment-sidekiq' if multi
end
if api_access
gem 'jwt'
gem 'versionist'
gem 'active_model_serializers'
end
gem 'bower-rails'
gem 'doorkeeper'
gem 'reform'
gem 'excon'
gem 'responders'
gem 'kaminari-bootstrap'
gem 'enumerate_it'
gem 'central'
gem 'puma'
gem 'pundit'
gem 'simple_form'
gem 'kaminari'
gem 'draper'
gem 'osom-tables'
gem_group :development, :test do
gem "rspec-rails"
gem 'factory_girl_rails'
gem 'rspec-mocks'
gem 'pry-rails'
gem 'pry-rescue'
gem 'shoulda-matchers', require: false
gem 'byebug'
end
gem_group :development do
gem 'better_errors'
gem 'binding_of_caller', :platforms=>[:mri_21]
gem 'foreman'
gem 'guard-bundler'
gem 'guard-rails'
gem 'guard-rspec'
gem 'html2haml'
gem 'hub', :require=>nil
gem 'quiet_assets'
end
rake("db:migrate")
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment