Skip to content

Commit 834c1ca

Browse files
committed
Initial commit
0 parents  commit 834c1ca

Some content is hidden

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

79 files changed

+1232
-0
lines changed

.gitignore

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 uploaded files in development
21+
/storage/*
22+
23+
/node_modules
24+
/yarn-error.log
25+
26+
/public/assets
27+
.byebug_history
28+
29+
# Ignore master key for decrypting credentials and more.
30+
/config/master.key

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.5.1

Gemfile

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.5.1'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 5.2.0'
8+
# Use sqlite3 as the database for Active Record
9+
gem 'sqlite3'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 3.11'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '~> 5.0'
14+
# Use Uglifier as compressor for JavaScript assets
15+
gem 'uglifier', '>= 1.3.0'
16+
# See https://github.com/rails/execjs#readme for more supported runtimes
17+
# gem 'mini_racer', platforms: :ruby
18+
19+
# Use CoffeeScript for .coffee assets and views
20+
gem 'coffee-rails', '~> 4.2'
21+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22+
gem 'turbolinks', '~> 5'
23+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24+
gem 'jbuilder', '~> 2.5'
25+
# Use Redis adapter to run Action Cable in production
26+
# gem 'redis', '~> 4.0'
27+
# Use ActiveModel has_secure_password
28+
# gem 'bcrypt', '~> 3.1.7'
29+
30+
# Use ActiveStorage variant
31+
# gem 'mini_magick', '~> 4.8'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
# Reduces boot times through caching; required in config/boot.rb
37+
gem 'bootsnap', '>= 1.1.0', require: false
38+
39+
group :development, :test do
40+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
41+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
42+
end
43+
44+
group :development do
45+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
46+
gem 'web-console', '>= 3.3.0'
47+
gem 'listen', '>= 3.0.5', '< 3.2'
48+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
49+
gem 'spring'
50+
gem 'spring-watcher-listen', '~> 2.0.0'
51+
end
52+
53+
group :test do
54+
# Adds support for Capybara system testing and selenium driver
55+
gem 'capybara', '>= 2.15', '< 4.0'
56+
gem 'selenium-webdriver'
57+
# Easy installation and use of chromedriver to run system tests with Chrome
58+
gem 'chromedriver-helper'
59+
end
60+
61+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
62+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+218
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.2.0)
5+
actionpack (= 5.2.0)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailer (5.2.0)
9+
actionpack (= 5.2.0)
10+
actionview (= 5.2.0)
11+
activejob (= 5.2.0)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.2.0)
15+
actionview (= 5.2.0)
16+
activesupport (= 5.2.0)
17+
rack (~> 2.0)
18+
rack-test (>= 0.6.3)
19+
rails-dom-testing (~> 2.0)
20+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21+
actionview (5.2.0)
22+
activesupport (= 5.2.0)
23+
builder (~> 3.1)
24+
erubi (~> 1.4)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27+
activejob (5.2.0)
28+
activesupport (= 5.2.0)
29+
globalid (>= 0.3.6)
30+
activemodel (5.2.0)
31+
activesupport (= 5.2.0)
32+
activerecord (5.2.0)
33+
activemodel (= 5.2.0)
34+
activesupport (= 5.2.0)
35+
arel (>= 9.0)
36+
activestorage (5.2.0)
37+
actionpack (= 5.2.0)
38+
activerecord (= 5.2.0)
39+
marcel (~> 0.3.1)
40+
activesupport (5.2.0)
41+
concurrent-ruby (~> 1.0, >= 1.0.2)
42+
i18n (>= 0.7, < 2)
43+
minitest (~> 5.1)
44+
tzinfo (~> 1.1)
45+
addressable (2.5.2)
46+
public_suffix (>= 2.0.2, < 4.0)
47+
archive-zip (0.11.0)
48+
io-like (~> 0.3.0)
49+
arel (9.0.0)
50+
bindex (0.5.0)
51+
bootsnap (1.3.1)
52+
msgpack (~> 1.0)
53+
builder (3.2.3)
54+
byebug (10.0.2)
55+
capybara (3.4.2)
56+
addressable
57+
mini_mime (>= 0.1.3)
58+
nokogiri (~> 1.8)
59+
rack (>= 1.6.0)
60+
rack-test (>= 0.6.3)
61+
xpath (~> 3.1)
62+
childprocess (0.9.0)
63+
ffi (~> 1.0, >= 1.0.11)
64+
chromedriver-helper (1.2.0)
65+
archive-zip (~> 0.10)
66+
nokogiri (~> 1.8)
67+
coffee-rails (4.2.2)
68+
coffee-script (>= 2.2.0)
69+
railties (>= 4.0.0)
70+
coffee-script (2.4.1)
71+
coffee-script-source
72+
execjs
73+
coffee-script-source (1.12.2)
74+
concurrent-ruby (1.0.5)
75+
crass (1.0.4)
76+
erubi (1.7.1)
77+
execjs (2.7.0)
78+
ffi (1.9.25)
79+
globalid (0.4.1)
80+
activesupport (>= 4.2.0)
81+
i18n (1.0.1)
82+
concurrent-ruby (~> 1.0)
83+
io-like (0.3.0)
84+
jbuilder (2.7.0)
85+
activesupport (>= 4.2.0)
86+
multi_json (>= 1.2)
87+
listen (3.1.5)
88+
rb-fsevent (~> 0.9, >= 0.9.4)
89+
rb-inotify (~> 0.9, >= 0.9.7)
90+
ruby_dep (~> 1.2)
91+
loofah (2.2.2)
92+
crass (~> 1.0.2)
93+
nokogiri (>= 1.5.9)
94+
mail (2.7.0)
95+
mini_mime (>= 0.1.1)
96+
marcel (0.3.2)
97+
mimemagic (~> 0.3.2)
98+
method_source (0.9.0)
99+
mimemagic (0.3.2)
100+
mini_mime (1.0.0)
101+
mini_portile2 (2.3.0)
102+
minitest (5.11.3)
103+
msgpack (1.2.4)
104+
multi_json (1.13.1)
105+
nio4r (2.3.1)
106+
nokogiri (1.8.4)
107+
mini_portile2 (~> 2.3.0)
108+
public_suffix (3.0.2)
109+
puma (3.12.0)
110+
rack (2.0.5)
111+
rack-test (1.1.0)
112+
rack (>= 1.0, < 3)
113+
rails (5.2.0)
114+
actioncable (= 5.2.0)
115+
actionmailer (= 5.2.0)
116+
actionpack (= 5.2.0)
117+
actionview (= 5.2.0)
118+
activejob (= 5.2.0)
119+
activemodel (= 5.2.0)
120+
activerecord (= 5.2.0)
121+
activestorage (= 5.2.0)
122+
activesupport (= 5.2.0)
123+
bundler (>= 1.3.0)
124+
railties (= 5.2.0)
125+
sprockets-rails (>= 2.0.0)
126+
rails-dom-testing (2.0.3)
127+
activesupport (>= 4.2.0)
128+
nokogiri (>= 1.6)
129+
rails-html-sanitizer (1.0.4)
130+
loofah (~> 2.2, >= 2.2.2)
131+
railties (5.2.0)
132+
actionpack (= 5.2.0)
133+
activesupport (= 5.2.0)
134+
method_source
135+
rake (>= 0.8.7)
136+
thor (>= 0.18.1, < 2.0)
137+
rake (12.3.1)
138+
rb-fsevent (0.10.3)
139+
rb-inotify (0.9.10)
140+
ffi (>= 0.5.0, < 2)
141+
ruby_dep (1.5.0)
142+
rubyzip (1.2.1)
143+
sass (3.5.7)
144+
sass-listen (~> 4.0.0)
145+
sass-listen (4.0.0)
146+
rb-fsevent (~> 0.9, >= 0.9.4)
147+
rb-inotify (~> 0.9, >= 0.9.7)
148+
sass-rails (5.0.7)
149+
railties (>= 4.0.0, < 6)
150+
sass (~> 3.1)
151+
sprockets (>= 2.8, < 4.0)
152+
sprockets-rails (>= 2.0, < 4.0)
153+
tilt (>= 1.1, < 3)
154+
selenium-webdriver (3.13.1)
155+
childprocess (~> 0.5)
156+
rubyzip (~> 1.2)
157+
spring (2.0.2)
158+
activesupport (>= 4.2)
159+
spring-watcher-listen (2.0.1)
160+
listen (>= 2.7, < 4.0)
161+
spring (>= 1.2, < 3.0)
162+
sprockets (3.7.2)
163+
concurrent-ruby (~> 1.0)
164+
rack (> 1, < 3)
165+
sprockets-rails (3.2.1)
166+
actionpack (>= 4.0)
167+
activesupport (>= 4.0)
168+
sprockets (>= 3.0.0)
169+
sqlite3 (1.3.13)
170+
thor (0.20.0)
171+
thread_safe (0.3.6)
172+
tilt (2.0.8)
173+
turbolinks (5.1.1)
174+
turbolinks-source (~> 5.1)
175+
turbolinks-source (5.1.0)
176+
tzinfo (1.2.5)
177+
thread_safe (~> 0.1)
178+
uglifier (4.1.17)
179+
execjs (>= 0.3.0, < 3)
180+
web-console (3.6.2)
181+
actionview (>= 5.0)
182+
activemodel (>= 5.0)
183+
bindex (>= 0.4.0)
184+
railties (>= 5.0)
185+
websocket-driver (0.7.0)
186+
websocket-extensions (>= 0.1.0)
187+
websocket-extensions (0.1.3)
188+
xpath (3.1.0)
189+
nokogiri (~> 1.8)
190+
191+
PLATFORMS
192+
ruby
193+
194+
DEPENDENCIES
195+
bootsnap (>= 1.1.0)
196+
byebug
197+
capybara (>= 2.15, < 4.0)
198+
chromedriver-helper
199+
coffee-rails (~> 4.2)
200+
jbuilder (~> 2.5)
201+
listen (>= 3.0.5, < 3.2)
202+
puma (~> 3.11)
203+
rails (~> 5.2.0)
204+
sass-rails (~> 5.0)
205+
selenium-webdriver
206+
spring
207+
spring-watcher-listen (~> 2.0.0)
208+
sqlite3
209+
turbolinks (~> 5)
210+
tzinfo-data
211+
uglifier (>= 1.3.0)
212+
web-console (>= 3.3.0)
213+
214+
RUBY VERSION
215+
ruby 2.5.1p57
216+
217+
BUNDLED WITH
218+
1.16.0

README.md

+24
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

+6
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

+3
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/images/sample.jpg

86.2 KB
Loading

app/assets/javascripts/application.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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, or any plugin's
5+
// 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 rails-ujs
14+
//= require activestorage
15+
//= require turbolinks
16+
//= require_tree .

app/assets/javascripts/cable.js

+13
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.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/

0 commit comments

Comments
 (0)