forked from lighthouse-labs/jungle-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e1e76cf
Showing
99 changed files
with
2,097 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
STRIPE_PUBLISHABLE_KEY=your_test_key_here | ||
STRIPE_SECRET_KEY=your_test_key_here |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile '~/.gitignore_global' | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
!/log/.keep | ||
/tmp | ||
|
||
# Ignore carrier wave uploads for development | ||
/public/uploads | ||
|
||
# Ignore db creds / settings | ||
/config/database.yml | ||
|
||
*.rbc | ||
capybara-*.html | ||
.rspec | ||
/db/*.sqlite3 | ||
/db/*.sqlite3-journal | ||
/public/system | ||
/coverage/ | ||
/spec/tmp | ||
**.orig | ||
rerun.txt | ||
pickle-email-*.html | ||
|
||
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo | ||
config/initializers/secret_token.rb | ||
config/secrets.yml | ||
|
||
# dotenv | ||
# TODO Comment out this rule if environment variables can be committed | ||
.env | ||
|
||
## Environment normalization: | ||
/.bundle | ||
/vendor/bundle | ||
|
||
# these should all be checked in to normalize the environment: | ||
# Gemfile.lock, .ruby-version, .ruby-gemset | ||
|
||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: | ||
.rvmrc | ||
|
||
# if using bower-rails ignore default bower_components path bower.json files | ||
/vendor/assets/bower_components | ||
*.bowerrc | ||
bower.json | ||
|
||
# Ignore pow environment settings | ||
.powenv | ||
|
||
# Ignore Byebug command history file. | ||
.byebug_history |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
source 'https://rubygems.org' | ||
ruby "2.3.0" | ||
|
||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '4.2.6' | ||
# Use postgresql as the database for Active Record | ||
gem 'pg' | ||
# Use SCSS for stylesheets | ||
gem 'sass-rails', '~> 5.0' | ||
# Use Uglifier as compressor for JavaScript assets | ||
gem 'uglifier', '>= 1.3.0' | ||
# Use CoffeeScript for .coffee assets and views | ||
# gem 'coffee-rails', '~> 4.1.0' | ||
# See https://github.com/rails/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', platforms: :ruby | ||
|
||
# Use jquery as the JavaScript library | ||
gem 'jquery-rails' | ||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | ||
gem 'turbolinks' | ||
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
gem 'jbuilder', '~> 2.0' | ||
# bundle exec rake doc:rails generates the API under doc/api. | ||
gem 'sdoc', '~> 0.4.0', group: :doc | ||
|
||
# Use ActiveModel has_secure_password | ||
gem 'bcrypt', '~> 3.1.7' | ||
|
||
gem 'puma' | ||
|
||
gem 'bootstrap-sass', '~> 3.3.6' | ||
gem 'font-awesome-rails' | ||
gem 'money-rails' | ||
gem 'carrierwave' | ||
gem 'rmagick' | ||
gem 'stripe' | ||
gem 'faker' | ||
|
||
# Use Capistrano for deployment | ||
# gem 'capistrano-rails', group: :development | ||
|
||
group :development, :test do | ||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console | ||
gem 'byebug' | ||
gem 'quiet_assets' | ||
gem 'dotenv-rails' | ||
end | ||
|
||
group :development do | ||
# Access an IRB console on exception pages or by using <%= console %> in views | ||
gem 'web-console', '~> 2.0' | ||
|
||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
gem 'spring' | ||
end | ||
|
||
group :production do | ||
gem 'newrelic_rpm' | ||
gem 'rails_12factor' | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,219 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (4.2.6) | ||
actionpack (= 4.2.6) | ||
actionview (= 4.2.6) | ||
activejob (= 4.2.6) | ||
mail (~> 2.5, >= 2.5.4) | ||
rails-dom-testing (~> 1.0, >= 1.0.5) | ||
actionpack (4.2.6) | ||
actionview (= 4.2.6) | ||
activesupport (= 4.2.6) | ||
rack (~> 1.6) | ||
rack-test (~> 0.6.2) | ||
rails-dom-testing (~> 1.0, >= 1.0.5) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.2) | ||
actionview (4.2.6) | ||
activesupport (= 4.2.6) | ||
builder (~> 3.1) | ||
erubis (~> 2.7.0) | ||
rails-dom-testing (~> 1.0, >= 1.0.5) | ||
rails-html-sanitizer (~> 1.0, >= 1.0.2) | ||
activejob (4.2.6) | ||
activesupport (= 4.2.6) | ||
globalid (>= 0.3.0) | ||
activemodel (4.2.6) | ||
activesupport (= 4.2.6) | ||
builder (~> 3.1) | ||
activerecord (4.2.6) | ||
activemodel (= 4.2.6) | ||
activesupport (= 4.2.6) | ||
arel (~> 6.0) | ||
activesupport (4.2.6) | ||
i18n (~> 0.7) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.3, >= 0.3.4) | ||
tzinfo (~> 1.1) | ||
arel (6.0.3) | ||
autoprefixer-rails (6.3.7) | ||
execjs | ||
bcrypt (3.1.11) | ||
binding_of_caller (0.7.2) | ||
debug_inspector (>= 0.0.1) | ||
bootstrap-sass (3.3.6) | ||
autoprefixer-rails (>= 5.2.1) | ||
sass (>= 3.3.4) | ||
builder (3.2.2) | ||
byebug (9.0.5) | ||
carrierwave (0.10.0) | ||
activemodel (>= 3.2.0) | ||
activesupport (>= 3.2.0) | ||
json (>= 1.7) | ||
mime-types (>= 1.16) | ||
concurrent-ruby (1.0.2) | ||
debug_inspector (0.0.2) | ||
domain_name (0.5.20160615) | ||
unf (>= 0.0.5, < 1.0.0) | ||
dotenv (1.0.2) | ||
dotenv-rails (1.0.2) | ||
dotenv (= 1.0.2) | ||
erubis (2.7.0) | ||
execjs (2.7.0) | ||
faker (1.6.1) | ||
i18n (~> 0.5) | ||
font-awesome-rails (4.5.0.1) | ||
railties (>= 3.2, < 5.1) | ||
globalid (0.3.6) | ||
activesupport (>= 4.1.0) | ||
http-cookie (1.0.2) | ||
domain_name (~> 0.5) | ||
i18n (0.7.0) | ||
jbuilder (2.6.0) | ||
activesupport (>= 3.0.0, < 5.1) | ||
multi_json (~> 1.2) | ||
jquery-rails (4.1.1) | ||
rails-dom-testing (>= 1, < 3) | ||
railties (>= 4.2.0) | ||
thor (>= 0.14, < 2.0) | ||
json (1.8.3) | ||
loofah (2.0.3) | ||
nokogiri (>= 1.5.9) | ||
mail (2.6.4) | ||
mime-types (>= 1.16, < 4) | ||
mime-types (3.1) | ||
mime-types-data (~> 3.2015) | ||
mime-types-data (3.2016.0521) | ||
mini_portile2 (2.1.0) | ||
minitest (5.9.0) | ||
monetize (1.1.0) | ||
money (~> 6.5.0) | ||
money (6.5.1) | ||
i18n (>= 0.6.4, <= 0.7.0) | ||
money-rails (1.4.1) | ||
activesupport (>= 3.0) | ||
monetize (~> 1.1.0) | ||
money (~> 6.5.0) | ||
railties (>= 3.0) | ||
multi_json (1.12.1) | ||
netrc (0.11.0) | ||
newrelic_rpm (3.16.0.318) | ||
nokogiri (1.6.8) | ||
mini_portile2 (~> 2.1.0) | ||
pkg-config (~> 1.1.7) | ||
pg (0.18.4) | ||
pkg-config (1.1.7) | ||
puma (3.5.2) | ||
quiet_assets (1.0.3) | ||
railties (>= 3.1, < 5.0) | ||
rack (1.6.4) | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rails (4.2.6) | ||
actionmailer (= 4.2.6) | ||
actionpack (= 4.2.6) | ||
actionview (= 4.2.6) | ||
activejob (= 4.2.6) | ||
activemodel (= 4.2.6) | ||
activerecord (= 4.2.6) | ||
activesupport (= 4.2.6) | ||
bundler (>= 1.3.0, < 2.0) | ||
railties (= 4.2.6) | ||
sprockets-rails | ||
rails-deprecated_sanitizer (1.0.3) | ||
activesupport (>= 4.2.0.alpha) | ||
rails-dom-testing (1.0.7) | ||
activesupport (>= 4.2.0.beta, < 5.0) | ||
nokogiri (~> 1.6.0) | ||
rails-deprecated_sanitizer (>= 1.0.1) | ||
rails-html-sanitizer (1.0.3) | ||
loofah (~> 2.0) | ||
rails_12factor (0.0.3) | ||
rails_serve_static_assets | ||
rails_stdout_logging | ||
rails_serve_static_assets (0.0.5) | ||
rails_stdout_logging (0.0.5) | ||
railties (4.2.6) | ||
actionpack (= 4.2.6) | ||
activesupport (= 4.2.6) | ||
rake (>= 0.8.7) | ||
thor (>= 0.18.1, < 2.0) | ||
rake (11.2.2) | ||
rdoc (4.2.2) | ||
json (~> 1.4) | ||
rest-client (2.0.0) | ||
http-cookie (>= 1.0.2, < 2.0) | ||
mime-types (>= 1.16, < 4.0) | ||
netrc (~> 0.8) | ||
rmagick (2.15.4) | ||
sass (3.4.22) | ||
sass-rails (5.0.6) | ||
railties (>= 4.0.0, < 6) | ||
sass (~> 3.1) | ||
sprockets (>= 2.8, < 4.0) | ||
sprockets-rails (>= 2.0, < 4.0) | ||
tilt (>= 1.1, < 3) | ||
sdoc (0.4.1) | ||
json (~> 1.7, >= 1.7.7) | ||
rdoc (~> 4.0) | ||
spring (1.7.2) | ||
sprockets (3.7.0) | ||
concurrent-ruby (~> 1.0) | ||
rack (> 1, < 3) | ||
sprockets-rails (3.1.1) | ||
actionpack (>= 4.0) | ||
activesupport (>= 4.0) | ||
sprockets (>= 3.0.0) | ||
stripe (1.48.0) | ||
rest-client (>= 1.4, < 3.0) | ||
thor (0.19.1) | ||
thread_safe (0.3.5) | ||
tilt (2.0.5) | ||
turbolinks (5.0.0) | ||
turbolinks-source (~> 5) | ||
turbolinks-source (5.0.0) | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
uglifier (3.0.0) | ||
execjs (>= 0.3.0, < 3) | ||
unf (0.1.4) | ||
unf_ext | ||
unf_ext (0.0.7.2) | ||
web-console (2.3.0) | ||
activemodel (>= 4.0) | ||
binding_of_caller (>= 0.7.2) | ||
railties (>= 4.0) | ||
sprockets-rails (>= 2.0, < 4.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bcrypt (~> 3.1.7) | ||
bootstrap-sass (~> 3.3.6) | ||
byebug | ||
carrierwave | ||
dotenv-rails | ||
faker | ||
font-awesome-rails | ||
jbuilder (~> 2.0) | ||
jquery-rails | ||
money-rails | ||
newrelic_rpm | ||
pg | ||
puma | ||
quiet_assets | ||
rails (= 4.2.6) | ||
rails_12factor | ||
rmagick | ||
sass-rails (~> 5.0) | ||
sdoc (~> 0.4.0) | ||
spring | ||
stripe | ||
turbolinks | ||
uglifier (>= 1.3.0) | ||
web-console (~> 2.0) | ||
|
||
BUNDLED WITH | ||
1.11.2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Jungle | ||
|
||
A mini e-commerce application built with Rails 4.2 for purposes of teaching Rails by example. | ||
|
||
|
||
## Setup | ||
|
||
1. Fork & Clone | ||
2. Run `bundle install` to install dependencies | ||
3. Create `config/database.yml` by copying `config/database.example.yml` | ||
4. Update the username and password within the `development` section according to your local postgres credentials. | ||
5. Run `bin/rake db:reset` to create, load and seed db | ||
6. Create .env file based on .env.example | ||
7. Sign up for a Stripe account | ||
8. Put Stripe (test) keys into appropriate .env vars | ||
9. Run `bin/rails s -b 0.0.0.0` to start the server | ||
|
||
## Stripe Testing | ||
|
||
Use Credit Card # 4111 1111 1111 1111 for testing success scenarios. | ||
|
||
More information in their docs: <https://stripe.com/docs/testing#cards> | ||
|
||
## Dependencies | ||
|
||
* Rails 4.2 | ||
* PostgreSQL 9.x | ||
* Stripe | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
|
||
Rails.application.load_tasks |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require turbolinks | ||
//= require bootstrap-sprockets | ||
//= require_tree ./admin |
Empty file.
Oops, something went wrong.