Skip to content

Commit e75fb41

Browse files
committed
Initial layout
1 parent f6c7b5c commit e75fb41

File tree

95 files changed

+8936
-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.

95 files changed

+8936
-0
lines changed

.browserslistrc

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

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore uploaded files in development.
17+
/storage/*
18+
!/storage/.keep
19+
20+
/public/assets
21+
.byebug_history
22+
23+
# Ignore master key for decrypting credentials and more.
24+
/config/master.key
25+
26+
/public/packs
27+
/public/packs-test
28+
/node_modules
29+
/yarn-error.log
30+
yarn-debug.log*
31+
.yarn-integrity

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.6.4

Gemfile

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.4'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.0.0'
8+
# Use postgresql as the database for Active Record
9+
gem 'pg', '>= 0.18', '< 2.0'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 3.11'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '~> 5'
14+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15+
gem 'webpacker', '~> 4.0'
16+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17+
gem 'turbolinks', '~> 5'
18+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19+
gem 'jbuilder', '~> 2.7'
20+
# Use Redis adapter to run Action Cable in production
21+
# gem 'redis', '~> 4.0'
22+
# Use Active Model has_secure_password
23+
# gem 'bcrypt', '~> 3.1.7'
24+
25+
# Use Active Storage variant
26+
# gem 'image_processing', '~> 1.2'
27+
28+
# Reduces boot times through caching; required in config/boot.rb
29+
gem 'bootsnap', '>= 1.4.2', require: false
30+
31+
group :development, :test do
32+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
33+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
34+
end
35+
36+
group :development do
37+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38+
gem 'web-console', '>= 3.3.0'
39+
gem 'listen', '>= 3.0.5', '< 3.2'
40+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
41+
gem 'spring'
42+
gem 'spring-watcher-listen', '~> 2.0.0'
43+
end
44+
45+
group :test do
46+
# Adds support for Capybara system testing and selenium driver
47+
gem 'capybara', '>= 2.15'
48+
gem 'selenium-webdriver'
49+
# Easy installation and use of web drivers to run system tests with browsers
50+
gem 'webdrivers'
51+
end
52+
53+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
54+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+226
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.0.0)
5+
actionpack (= 6.0.0)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailbox (6.0.0)
9+
actionpack (= 6.0.0)
10+
activejob (= 6.0.0)
11+
activerecord (= 6.0.0)
12+
activestorage (= 6.0.0)
13+
activesupport (= 6.0.0)
14+
mail (>= 2.7.1)
15+
actionmailer (6.0.0)
16+
actionpack (= 6.0.0)
17+
actionview (= 6.0.0)
18+
activejob (= 6.0.0)
19+
mail (~> 2.5, >= 2.5.4)
20+
rails-dom-testing (~> 2.0)
21+
actionpack (6.0.0)
22+
actionview (= 6.0.0)
23+
activesupport (= 6.0.0)
24+
rack (~> 2.0)
25+
rack-test (>= 0.6.3)
26+
rails-dom-testing (~> 2.0)
27+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
28+
actiontext (6.0.0)
29+
actionpack (= 6.0.0)
30+
activerecord (= 6.0.0)
31+
activestorage (= 6.0.0)
32+
activesupport (= 6.0.0)
33+
nokogiri (>= 1.8.5)
34+
actionview (6.0.0)
35+
activesupport (= 6.0.0)
36+
builder (~> 3.1)
37+
erubi (~> 1.4)
38+
rails-dom-testing (~> 2.0)
39+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
40+
activejob (6.0.0)
41+
activesupport (= 6.0.0)
42+
globalid (>= 0.3.6)
43+
activemodel (6.0.0)
44+
activesupport (= 6.0.0)
45+
activerecord (6.0.0)
46+
activemodel (= 6.0.0)
47+
activesupport (= 6.0.0)
48+
activestorage (6.0.0)
49+
actionpack (= 6.0.0)
50+
activejob (= 6.0.0)
51+
activerecord (= 6.0.0)
52+
marcel (~> 0.3.1)
53+
activesupport (6.0.0)
54+
concurrent-ruby (~> 1.0, >= 1.0.2)
55+
i18n (>= 0.7, < 2)
56+
minitest (~> 5.1)
57+
tzinfo (~> 1.1)
58+
zeitwerk (~> 2.1, >= 2.1.8)
59+
addressable (2.7.0)
60+
public_suffix (>= 2.0.2, < 5.0)
61+
bindex (0.8.1)
62+
bootsnap (1.4.5)
63+
msgpack (~> 1.0)
64+
builder (3.2.3)
65+
byebug (11.0.1)
66+
capybara (3.29.0)
67+
addressable
68+
mini_mime (>= 0.1.3)
69+
nokogiri (~> 1.8)
70+
rack (>= 1.6.0)
71+
rack-test (>= 0.6.3)
72+
regexp_parser (~> 1.5)
73+
xpath (~> 3.2)
74+
childprocess (2.0.0)
75+
rake (< 13.0)
76+
concurrent-ruby (1.1.5)
77+
crass (1.0.4)
78+
erubi (1.8.0)
79+
ffi (1.11.1)
80+
globalid (0.4.2)
81+
activesupport (>= 4.2.0)
82+
i18n (1.6.0)
83+
concurrent-ruby (~> 1.0)
84+
jbuilder (2.9.1)
85+
activesupport (>= 4.2.0)
86+
listen (3.1.5)
87+
rb-fsevent (~> 0.9, >= 0.9.4)
88+
rb-inotify (~> 0.9, >= 0.9.7)
89+
ruby_dep (~> 1.2)
90+
loofah (2.2.3)
91+
crass (~> 1.0.2)
92+
nokogiri (>= 1.5.9)
93+
mail (2.7.1)
94+
mini_mime (>= 0.1.1)
95+
marcel (0.3.3)
96+
mimemagic (~> 0.3.2)
97+
method_source (0.9.2)
98+
mimemagic (0.3.3)
99+
mini_mime (1.0.2)
100+
mini_portile2 (2.4.0)
101+
minitest (5.12.0)
102+
msgpack (1.3.1)
103+
nio4r (2.5.1)
104+
nokogiri (1.10.4)
105+
mini_portile2 (~> 2.4.0)
106+
pg (1.1.4)
107+
public_suffix (4.0.1)
108+
puma (3.12.1)
109+
rack (2.0.7)
110+
rack-proxy (0.6.5)
111+
rack
112+
rack-test (1.1.0)
113+
rack (>= 1.0, < 3)
114+
rails (6.0.0)
115+
actioncable (= 6.0.0)
116+
actionmailbox (= 6.0.0)
117+
actionmailer (= 6.0.0)
118+
actionpack (= 6.0.0)
119+
actiontext (= 6.0.0)
120+
actionview (= 6.0.0)
121+
activejob (= 6.0.0)
122+
activemodel (= 6.0.0)
123+
activerecord (= 6.0.0)
124+
activestorage (= 6.0.0)
125+
activesupport (= 6.0.0)
126+
bundler (>= 1.3.0)
127+
railties (= 6.0.0)
128+
sprockets-rails (>= 2.0.0)
129+
rails-dom-testing (2.0.3)
130+
activesupport (>= 4.2.0)
131+
nokogiri (>= 1.6)
132+
rails-html-sanitizer (1.2.0)
133+
loofah (~> 2.2, >= 2.2.2)
134+
railties (6.0.0)
135+
actionpack (= 6.0.0)
136+
activesupport (= 6.0.0)
137+
method_source
138+
rake (>= 0.8.7)
139+
thor (>= 0.20.3, < 2.0)
140+
rake (12.3.3)
141+
rb-fsevent (0.10.3)
142+
rb-inotify (0.10.0)
143+
ffi (~> 1.0)
144+
regexp_parser (1.6.0)
145+
ruby_dep (1.5.0)
146+
rubyzip (1.2.4)
147+
sass (3.7.4)
148+
sass-listen (~> 4.0.0)
149+
sass-listen (4.0.0)
150+
rb-fsevent (~> 0.9, >= 0.9.4)
151+
rb-inotify (~> 0.9, >= 0.9.7)
152+
sass-rails (5.1.0)
153+
railties (>= 5.2.0)
154+
sass (~> 3.1)
155+
sprockets (>= 2.8, < 4.0)
156+
sprockets-rails (>= 2.0, < 4.0)
157+
tilt (>= 1.1, < 3)
158+
selenium-webdriver (3.142.4)
159+
childprocess (>= 0.5, < 3.0)
160+
rubyzip (~> 1.2, >= 1.2.2)
161+
spring (2.1.0)
162+
spring-watcher-listen (2.0.1)
163+
listen (>= 2.7, < 4.0)
164+
spring (>= 1.2, < 3.0)
165+
sprockets (3.7.2)
166+
concurrent-ruby (~> 1.0)
167+
rack (> 1, < 3)
168+
sprockets-rails (3.2.1)
169+
actionpack (>= 4.0)
170+
activesupport (>= 4.0)
171+
sprockets (>= 3.0.0)
172+
thor (0.20.3)
173+
thread_safe (0.3.6)
174+
tilt (2.0.10)
175+
turbolinks (5.2.1)
176+
turbolinks-source (~> 5.2)
177+
turbolinks-source (5.2.0)
178+
tzinfo (1.2.5)
179+
thread_safe (~> 0.1)
180+
web-console (4.0.1)
181+
actionview (>= 6.0.0)
182+
activemodel (>= 6.0.0)
183+
bindex (>= 0.4.0)
184+
railties (>= 6.0.0)
185+
webdrivers (4.1.2)
186+
nokogiri (~> 1.6)
187+
rubyzip (~> 1.0)
188+
selenium-webdriver (>= 3.0, < 4.0)
189+
webpacker (4.0.7)
190+
activesupport (>= 4.2)
191+
rack-proxy (>= 0.6.1)
192+
railties (>= 4.2)
193+
websocket-driver (0.7.1)
194+
websocket-extensions (>= 0.1.0)
195+
websocket-extensions (0.1.4)
196+
xpath (3.2.0)
197+
nokogiri (~> 1.8)
198+
zeitwerk (2.1.10)
199+
200+
PLATFORMS
201+
ruby
202+
203+
DEPENDENCIES
204+
bootsnap (>= 1.4.2)
205+
byebug
206+
capybara (>= 2.15)
207+
jbuilder (~> 2.7)
208+
listen (>= 3.0.5, < 3.2)
209+
pg (>= 0.18, < 2.0)
210+
puma (~> 3.11)
211+
rails (~> 6.0.0)
212+
sass-rails (~> 5)
213+
selenium-webdriver
214+
spring
215+
spring-watcher-listen (~> 2.0.0)
216+
turbolinks (~> 5)
217+
tzinfo-data
218+
web-console (>= 3.3.0)
219+
webdrivers
220+
webpacker (~> 4.0)
221+
222+
RUBY VERSION
223+
ruby 2.6.4p104
224+
225+
BUNDLED WITH
226+
1.17.2

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

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

app/assets/images/.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+
*/

app/assets/stylesheets/welcome.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the welcome controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationController < ActionController::Base
2+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/controllers/welcome_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class WelcomeController < ApplicationController
2+
end

app/helpers/application_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/helpers/welcome_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module WelcomeHelper
2+
end

app/javascript/channels/consumer.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+
import { createConsumer } from "@rails/actioncable"
5+
6+
export default createConsumer()

app/javascript/channels/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Load all the channels within this directory and all subdirectories.
2+
// Channel files must be named *_channel.js.
3+
4+
const channels = require.context('.', true, /_channel\.js$/)
5+
channels.keys().forEach(channels)

0 commit comments

Comments
 (0)