Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit 42042af

Browse files
committed
configure app
0 parents  commit 42042af

File tree

111 files changed

+1905
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1905
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["stage-1", "es2015", "react"]
3+
}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore Byebug command history file.
21+
.byebug_history
22+
/node_modules
23+
/app/assets/javascripts/react_bundle.js
24+
/app/assets/stylesheets/react_bundle.css

Gemfile

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
9+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10+
gem 'rails', '>= 5.0.1.rc1', '< 5.1'
11+
# Use sqlite3 as the database for Active Record
12+
gem 'sqlite3'
13+
# Use Puma as the app server
14+
gem 'puma', '~> 3.0'
15+
# Use SCSS for stylesheets
16+
gem 'sass-rails', '~> 5.0'
17+
# Use Uglifier as compressor for JavaScript assets
18+
gem 'uglifier', '>= 1.3.0'
19+
# Use CoffeeScript for .coffee assets and views
20+
gem 'coffee-rails', '~> 4.2'
21+
# See https://github.com/rails/execjs#readme for more supported runtimes
22+
# gem 'therubyracer', platforms: :ruby
23+
24+
# Use jquery as the JavaScript library
25+
gem 'jquery-rails'
26+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
27+
gem 'turbolinks', '~> 5'
28+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
29+
gem 'jbuilder', '~> 2.5'
30+
# Use Redis adapter to run Action Cable in production
31+
# gem 'redis', '~> 3.0'
32+
# Use ActiveModel has_secure_password
33+
# gem 'bcrypt', '~> 3.1.7'
34+
35+
gem 'react_webpack_rails'
36+
gem 'carrierwave', '>= 1.0.0.rc', '< 2.0'
37+
gem "mini_magick"
38+
gem 'bootstrap', '~> 4.0.0.alpha5'
39+
source 'https://rails-assets.org' do
40+
gem 'rails-assets-tether', '>= 1.1.0'
41+
end
42+
# Use Capistrano for deployment
43+
# gem 'capistrano-rails', group: :development
44+
45+
group :development, :test do
46+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
47+
gem 'byebug', platform: :mri
48+
end
49+
50+
group :development do
51+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
52+
gem 'web-console', '>= 3.3.0'
53+
gem 'listen', '~> 3.0.5'
54+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
55+
gem 'spring'
56+
gem 'spring-watcher-listen', '~> 2.0.0'
57+
end
58+
59+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
60+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
61+
gem 'rwr-view_helpers', '~> 0.1.1'

Gemfile.lock

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
remote: https://rails-assets.org/
4+
specs:
5+
actioncable (5.0.1.rc2)
6+
actionpack (= 5.0.1.rc2)
7+
nio4r (~> 1.2)
8+
websocket-driver (~> 0.6.1)
9+
actionmailer (5.0.1.rc2)
10+
actionpack (= 5.0.1.rc2)
11+
actionview (= 5.0.1.rc2)
12+
activejob (= 5.0.1.rc2)
13+
mail (~> 2.5, >= 2.5.4)
14+
rails-dom-testing (~> 2.0)
15+
actionpack (5.0.1.rc2)
16+
actionview (= 5.0.1.rc2)
17+
activesupport (= 5.0.1.rc2)
18+
rack (~> 2.0)
19+
rack-test (~> 0.6.3)
20+
rails-dom-testing (~> 2.0)
21+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
22+
actionview (5.0.1.rc2)
23+
activesupport (= 5.0.1.rc2)
24+
builder (~> 3.1)
25+
erubis (~> 2.7.0)
26+
rails-dom-testing (~> 2.0)
27+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
28+
activejob (5.0.1.rc2)
29+
activesupport (= 5.0.1.rc2)
30+
globalid (>= 0.3.6)
31+
activemodel (5.0.1.rc2)
32+
activesupport (= 5.0.1.rc2)
33+
activerecord (5.0.1.rc2)
34+
activemodel (= 5.0.1.rc2)
35+
activesupport (= 5.0.1.rc2)
36+
arel (~> 7.0)
37+
activesupport (5.0.1.rc2)
38+
concurrent-ruby (~> 1.0, >= 1.0.2)
39+
i18n (~> 0.7)
40+
minitest (~> 5.1)
41+
tzinfo (~> 1.1)
42+
arel (7.1.4)
43+
autoprefixer-rails (6.5.3)
44+
execjs
45+
bootstrap (4.0.0.alpha5)
46+
autoprefixer-rails (>= 6.0.3)
47+
sass (>= 3.4.19)
48+
builder (3.2.2)
49+
byebug (9.0.6)
50+
carrierwave (1.0.0.rc)
51+
activemodel (>= 4.0.0)
52+
activesupport (>= 4.0.0)
53+
mime-types (>= 1.16)
54+
coffee-rails (4.2.1)
55+
coffee-script (>= 2.2.0)
56+
railties (>= 4.0.0, < 5.2.x)
57+
coffee-script (2.4.1)
58+
coffee-script-source
59+
execjs
60+
coffee-script-source (1.11.1)
61+
concurrent-ruby (1.0.2)
62+
debug_inspector (0.0.2)
63+
erubis (2.7.0)
64+
execjs (2.7.0)
65+
ffi (1.9.14)
66+
globalid (0.3.7)
67+
activesupport (>= 4.1.0)
68+
i18n (0.7.0)
69+
jbuilder (2.6.1)
70+
activesupport (>= 3.0.0, < 5.1)
71+
multi_json (~> 1.2)
72+
jquery-rails (4.2.1)
73+
rails-dom-testing (>= 1, < 3)
74+
railties (>= 4.2.0)
75+
thor (>= 0.14, < 2.0)
76+
listen (3.0.8)
77+
rb-fsevent (~> 0.9, >= 0.9.4)
78+
rb-inotify (~> 0.9, >= 0.9.7)
79+
loofah (2.0.3)
80+
nokogiri (>= 1.5.9)
81+
mail (2.6.4)
82+
mime-types (>= 1.16, < 4)
83+
method_source (0.8.2)
84+
mime-types (3.1)
85+
mime-types-data (~> 3.2015)
86+
mime-types-data (3.2016.0521)
87+
mini_magick (4.6.0)
88+
mini_portile2 (2.1.0)
89+
minitest (5.10.1)
90+
multi_json (1.12.1)
91+
nio4r (1.2.1)
92+
nokogiri (1.6.8.1)
93+
mini_portile2 (~> 2.1.0)
94+
puma (3.6.2)
95+
rack (2.0.1)
96+
rack-test (0.6.3)
97+
rack (>= 1.0)
98+
rails (5.0.1.rc2)
99+
actioncable (= 5.0.1.rc2)
100+
actionmailer (= 5.0.1.rc2)
101+
actionpack (= 5.0.1.rc2)
102+
actionview (= 5.0.1.rc2)
103+
activejob (= 5.0.1.rc2)
104+
activemodel (= 5.0.1.rc2)
105+
activerecord (= 5.0.1.rc2)
106+
activesupport (= 5.0.1.rc2)
107+
bundler (>= 1.3.0, < 2.0)
108+
railties (= 5.0.1.rc2)
109+
sprockets-rails (>= 2.0.0)
110+
rails-assets-tether (1.3.7)
111+
rails-dom-testing (2.0.1)
112+
activesupport (>= 4.2.0, < 6.0)
113+
nokogiri (~> 1.6.0)
114+
rails-html-sanitizer (1.0.3)
115+
loofah (~> 2.0)
116+
railties (5.0.1.rc2)
117+
actionpack (= 5.0.1.rc2)
118+
activesupport (= 5.0.1.rc2)
119+
method_source
120+
rake (>= 0.8.7)
121+
thor (>= 0.18.1, < 2.0)
122+
rake (12.0.0)
123+
rb-fsevent (0.9.8)
124+
rb-inotify (0.9.7)
125+
ffi (>= 0.5.0)
126+
react_webpack_rails (0.6.0)
127+
rails (>= 3.2)
128+
rwr-view_helpers (0.1.1)
129+
rails
130+
react_webpack_rails (>= 0.6.0)
131+
sprockets (>= 3.0)
132+
sass (3.4.22)
133+
sass-rails (5.0.6)
134+
railties (>= 4.0.0, < 6)
135+
sass (~> 3.1)
136+
sprockets (>= 2.8, < 4.0)
137+
sprockets-rails (>= 2.0, < 4.0)
138+
tilt (>= 1.1, < 3)
139+
spring (2.0.0)
140+
activesupport (>= 4.2)
141+
spring-watcher-listen (2.0.1)
142+
listen (>= 2.7, < 4.0)
143+
spring (>= 1.2, < 3.0)
144+
sprockets (3.7.0)
145+
concurrent-ruby (~> 1.0)
146+
rack (> 1, < 3)
147+
sprockets-rails (3.2.0)
148+
actionpack (>= 4.0)
149+
activesupport (>= 4.0)
150+
sprockets (>= 3.0.0)
151+
sqlite3 (1.3.12)
152+
thor (0.19.4)
153+
thread_safe (0.3.5)
154+
tilt (2.0.5)
155+
turbolinks (5.0.1)
156+
turbolinks-source (~> 5)
157+
turbolinks-source (5.0.0)
158+
tzinfo (1.2.2)
159+
thread_safe (~> 0.1)
160+
uglifier (3.0.4)
161+
execjs (>= 0.3.0, < 3)
162+
web-console (3.4.0)
163+
actionview (>= 5.0)
164+
activemodel (>= 5.0)
165+
debug_inspector
166+
railties (>= 5.0)
167+
websocket-driver (0.6.4)
168+
websocket-extensions (>= 0.1.0)
169+
websocket-extensions (0.1.2)
170+
171+
PLATFORMS
172+
ruby
173+
174+
DEPENDENCIES
175+
bootstrap (~> 4.0.0.alpha5)
176+
byebug
177+
carrierwave (>= 1.0.0.rc, < 2.0)
178+
coffee-rails (~> 4.2)
179+
jbuilder (~> 2.5)
180+
jquery-rails
181+
listen (~> 3.0.5)
182+
mini_magick
183+
puma (~> 3.0)
184+
rails (>= 5.0.1.rc1, < 5.1)
185+
rails-assets-tether (>= 1.1.0)!
186+
react_webpack_rails
187+
rwr-view_helpers (~> 0.1.1)
188+
sass-rails (~> 5.0)
189+
spring
190+
spring-watcher-listen (~> 2.0.0)
191+
sqlite3
192+
turbolinks (~> 5)
193+
tzinfo-data
194+
uglifier (>= 1.3.0)
195+
web-console (>= 3.3.0)
196+
197+
BUNDLED WITH
198+
1.13.6

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative 'config/application'
5+
6+
Rails.application.load_tasks

app/assets/config/manifest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= link_tree ../images
2+
//= link_directory ../javascripts .js
3+
//= link_directory ../stylesheets .css

app/assets/images/.keep

Whitespace-only changes.

app/assets/javascripts/application.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
9+
//
10+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= require tether
17+
//= require bootstrap-sprockets
18+
//= require react_integration
19+
//= require react_bundle
20+
//= require_tree .

app/assets/javascripts/cable.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Action Cable provides the framework to deal with WebSockets in Rails.
2+
// You can generate new channels where WebSocket features live using the rails generate channel command.
3+
//
4+
//= require action_cable
5+
//= require_self
6+
//= require_tree ./channels
7+
8+
(function() {
9+
this.App || (this.App = {});
10+
11+
App.cable = ActionCable.createConsumer();
12+
13+
}).call(this);

app/assets/javascripts/channels/.keep

Whitespace-only changes.

app/assets/javascripts/photos.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import "bootstrap";
2+
@import "bootstrap_theme";
3+
@import "react_bundle"

0 commit comments

Comments
 (0)