Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c8f6183
finish artstore-week1
ryanyangtw Jul 10, 2014
49c325e
Finish: finish hw1 without seeing solution
ryanyangtw Jul 17, 2014
63defd7
Bundle pry-rails & pry-plus
ryanyangtw Jul 17, 2014
e90cdaf
install simple form with bootstrap
ryanyangtw Jul 17, 2014
896051f
MODIFY: modify simple form with bootstrap
ryanyangtw Jul 17, 2014
a32eae5
MODIFY: cleaning code using helper and admin controller
ryanyangtw Jul 17, 2014
4ce8343
ADD: add settinglogic and add database.yml to .gitignore
ryanyangtw Jul 18, 2014
dd2b355
Finish: finish hw1 through combining the solution-week1
ryanyangtw Jul 18, 2014
c346df7
Fix: fix the problem about database configuration
ryanyangtw Jul 18, 2014
1ca376a
Finish: finish the content taught in class2 ppt
ryanyangtw Jul 18, 2014
8cd1cd5
Add: add feature - remove items in the cart and empty of the cart
ryanyangtw Jul 19, 2014
b8bd2f4
Add: add jquery_ui for spinner and using ajax to update cart_item's q…
ryanyangtw Jul 19, 2014
f53db5a
Add: finish quantity mechanism
ryanyangtw Jul 20, 2014
1e22373
Add: add namespace account let user see the order in the past
ryanyangtw Jul 20, 2014
5c89eba
Finish: add account/order admin/order and finish hw2 without seeing t…
ryanyangtw Jul 20, 2014
25760d8
Add: add mail mechanism, sending email to user after create order and…
ryanyangtw Jul 21, 2014
d730a39
move jquery_customization.js to js folder
ryanyangtw Jul 24, 2014
8b1d8a2
Finish: finish hw2 without seeing the solution
ryanyangtw Jul 24, 2014
1b031a0
ADD: refactor code using helper and add i18n to translate the state o…
ryanyangtw Jul 26, 2014
727f9f6
Finish: finish hw2 throw combining the solution-week2
ryanyangtw Jul 26, 2014
ee20eeb
ADD: Let user can change the order state including canceling the orde…
ryanyangtw Jul 26, 2014
b4136e6
Add: uding settingslogic to solve security issue
ryanyangtw Jul 26, 2014
045030b
Add: add service object to clean out the code
ryanyangtw Jul 26, 2014
83932e5
Add: finish search
ryanyangtw Jul 26, 2014
6463a48
Add: add dev.rake to create 10 fake user
ryanyangtw Jul 27, 2014
04cdd92
Add: add sidekiq to asynchronnously sending email to buyer
ryanyangtw Jul 27, 2014
c878544
add capistrano
ryanyangtw Aug 8, 2014
65bb93f
Merge branch 'artstore-week3'
ryanyangtw Aug 8, 2014
96b4aed
trying again to use capistrano
ryanyangtw Aug 9, 2014
45a19a7
test for capistrano
ryanyangtw Aug 9, 2014
8acb9c7
fixed example.com problem
ryanyangtw Aug 9, 2014
f53d806
modify deploy_to /home/deplot/artstore
ryanyangtw Aug 9, 2014
32d6b7c
add create database.yml in deploy.rb
ryanyangtw Aug 9, 2014
d00d1f4
fixed typo
ryanyangtw Aug 9, 2014
730287f
comment gem pry
ryanyangtw Aug 9, 2014
7e881c2
add devise config.srcret_kry in initializer
ryanyangtw Aug 9, 2014
5bf2dc8
modify flat-ui
ryanyangtw Aug 9, 2014
fe59df7
modify secret.yml
ryanyangtw Aug 10, 2014
5c87393
add capistrano/console in config/deploy/production.rb
ryanyangtw Aug 11, 2014
4525c4c
test for linked_file in capistrano
ryanyangtw Aug 11, 2014
c89cde2
comment pry for deploy to linode
ryanyangtw Aug 11, 2014
6b70909
try to fix bug on capistrano
ryanyangtw Aug 11, 2014
c0d1fa6
add logs.cap
ryanyangtw Aug 11, 2014
45cca0e
revise logs.cap
ryanyangtw Aug 11, 2014
c3ccf86
change logs.cap to logs.rake
ryanyangtw Aug 11, 2014
39601ed
add smtp_settings in config/production.rb
ryanyangtw Aug 11, 2014
d628678
add config.action_mailer.default_url_options
ryanyangtw Aug 11, 2014
971c689
test for precompile
ryanyangtw Aug 11, 2014
73b9c90
Finish: finish hw3 throw combining the solution-week3
ryanyangtw Aug 12, 2014
f26eaf3
add seo_helper and sitemap
ryanyangtw Aug 13, 2014
22c3a6e
fixed typo in config.action_controller.asset_host
ryanyangtw Aug 13, 2014
b9adc54
fixed typo in production.rb 'http://assets0%d.inkryan.com'
ryanyangtw Aug 13, 2014
acbe466
add public/uploads to linked_dirs
ryanyangtw Aug 14, 2014
f0054aa
comment config.action_controller.asset_host fot test
ryanyangtw Aug 14, 2014
63b63b2
add @import 'bootstrap-sprockets'; to fix the problem missing glyphic…
ryanyangtw Aug 14, 2014
fb1a854
add facebook opengraph
ryanyangtw Aug 14, 2014
f765195
add other button to test
ryanyangtw Aug 14, 2014
5687f49
add fb like&share button and set graph for fb open graph
ryanyangtw Aug 14, 2014
b75cabb
Fininsh: finish HW4 without seeing solution and get off turbolinks to…
ryanyangtw Aug 14, 2014
815ce83
remove facebook default div id-root
ryanyangtw Aug 14, 2014
120d9d4
modify tag to image_src_link_tag
ryanyangtw Aug 14, 2014
df3c9e8
add cache in root
ryanyangtw Aug 15, 2014
6ef438a
fixed cache problem
ryanyangtw Aug 15, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

config/settings.yml
config/database.yml
config/secrets.yml
public/uploads
public/assets

45 changes: 45 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
require 'capistrano/console'

# this is not set for default
#require 'capistrano/rails/migrations'
#require 'capistrano/rails/assets'


# Load DSL and Setup Up Stages
require 'capistrano/setup'

# Includes default deployment tasks
require 'capistrano/deploy'

require 'capistrano/bundler'
require 'capistrano/rails'

#add for sidekiq
#you should care about the order of require
require 'capistrano/sidekiq'
require 'capistrano/sidekiq/monit' #to require monit tasks # Only for capistrano3


require 'capistrano/rvm'
set :rvm_type, :user
set :rvm_ruby_version, '2.0.0-p451'

# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
# https://github.com/capistrano/rvm
# https://github.com/capistrano/rbenv
# https://github.com/capistrano/chruby
# https://github.com/capistrano/bundler
# https://github.com/capistrano/rails
#
# require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
# require 'capistrano/bundler'
# require 'capistrano/rails/assets'
# require 'capistrano/rails/migrations'

# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
65 changes: 65 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,68 @@ gem 'spring', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]


#customize gem
#gem 'pry', '~> 0.10.0'

gem "simple_form", "3.1.0rc1"
gem 'bootstrap-sass', '~> 3.2.0.0'
#The bootstrap-sass-rails gem is deprecated starting with version 3.1.0.0.
#gem 'bootstrap-sass-rails', '~> 3.1.0.0'
gem 'will_paginate' , '~> 3.0'
gem 'will_paginate-bootstrap'
gem 'devise' , '~> 3.2'
gem 'carrierwave'
gem 'mini_magick', '~> 3.7.0'
gem 'cocoon', '~> 1.2.6'
gem 'settingslogic', '~> 2.0.9'
gem 'aasm', '~> 3.3.1'
gem 'stripe'
gem 'roadie'
gem 'ransack', github: 'activerecord-hackery/ransack', branch: 'rails-4.1'

# add for snipper
gem 'jquery-ui-rails', '~> 5.0.0'

# add for sidekiq
gem 'sidekiq', '~> 3.2.1'
gem 'sinatra', require: false
gem 'slim'

#add for capistrano
gem 'capistrano', '~> 3.2.0'
gem 'capistrano-bundler', '~> 1.1.2'
gem 'capistrano-rails', '~> 1.1.1'
gem 'capistrano-rvm', github: "capistrano/rvm"
gem 'capistrano-sidekiq' , github: 'seuros/capistrano-sidekiq'

gem 'mysql2'

#add for seo
gem 'seo_helper', '~> 1.0', :git => 'git://github.com/techbang/seo_helper.git'
gem 'sitemap_generator'

#fb open graph
gem 'open_graph_helper', :github => 'techbang/open_graph_helper'

group :development, :test do
gem 'pry-rails'
gem 'pry-plus'
gem 'meta_request'
gem 'better_errors'
gem "binding_of_caller"
gem 'guard-livereload'
gem 'annotate', '~> 2.6.5'
gem 'letter_opener', '~> 1.2.0'

end










Loading