Skip to content

Commit baa2592

Browse files
committed
Initial setup
0 parents  commit baa2592

Some content is hidden

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

74 files changed

+1365
-0
lines changed

.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 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+
!/storage/.keep
23+
24+
/node_modules
25+
/yarn-error.log
26+
27+
/public/assets
28+
.byebug_history
29+
30+
# Ignore master key for decrypting credentials and more.
31+
/config/master.key

.graphiticfg.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
namespace: "/api/v1"

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.ruby-version

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

Gemfile

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.5.1'
5+
6+
gem 'rails', '~> 5.2.1'
7+
gem 'pg'
8+
gem 'puma', '~> 3.11'
9+
10+
gem 'bootsnap', '>= 1.1.0', require: false
11+
12+
gem 'graphiti'
13+
gem 'pry'
14+
15+
group :development, :test do
16+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
17+
gem 'rspec-rails'
18+
end
19+
20+
group :development do
21+
gem 'web-console', '>= 3.3.0'
22+
gem 'listen', '>= 3.0.5', '< 3.2'
23+
gem 'spring'
24+
gem 'spring-watcher-listen', '~> 2.0.0'
25+
end
26+
27+
group :test do
28+
gem 'capybara', '>= 2.15'
29+
gem 'selenium-webdriver'
30+
gem 'chromedriver-helper'
31+
end

Gemfile.lock

+241
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.2.1)
5+
actionpack (= 5.2.1)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailer (5.2.1)
9+
actionpack (= 5.2.1)
10+
actionview (= 5.2.1)
11+
activejob (= 5.2.1)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.2.1)
15+
actionview (= 5.2.1)
16+
activesupport (= 5.2.1)
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.1)
22+
activesupport (= 5.2.1)
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.1)
28+
activesupport (= 5.2.1)
29+
globalid (>= 0.3.6)
30+
activemodel (5.2.1)
31+
activesupport (= 5.2.1)
32+
activerecord (5.2.1)
33+
activemodel (= 5.2.1)
34+
activesupport (= 5.2.1)
35+
arel (>= 9.0)
36+
activestorage (5.2.1)
37+
actionpack (= 5.2.1)
38+
activerecord (= 5.2.1)
39+
marcel (~> 0.3.1)
40+
activesupport (5.2.1)
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.2)
52+
msgpack (~> 1.0)
53+
builder (3.2.3)
54+
byebug (10.0.2)
55+
capybara (3.11.1)
56+
addressable
57+
mini_mime (>= 0.1.3)
58+
nokogiri (~> 1.8)
59+
rack (>= 1.6.0)
60+
rack-test (>= 0.6.3)
61+
regexp_parser (~> 1.2)
62+
xpath (~> 3.2)
63+
childprocess (0.9.0)
64+
ffi (~> 1.0, >= 1.0.11)
65+
chromedriver-helper (2.1.0)
66+
archive-zip (~> 0.10)
67+
nokogiri (~> 1.8)
68+
coderay (1.1.2)
69+
concurrent-ruby (1.1.3)
70+
crass (1.0.4)
71+
diff-lcs (1.3)
72+
dry-configurable (0.7.0)
73+
concurrent-ruby (~> 1.0)
74+
dry-container (0.6.0)
75+
concurrent-ruby (~> 1.0)
76+
dry-configurable (~> 0.1, >= 0.1.3)
77+
dry-core (0.4.7)
78+
concurrent-ruby (~> 1.0)
79+
dry-equalizer (0.2.1)
80+
dry-inflector (0.1.2)
81+
dry-logic (0.4.2)
82+
dry-container (~> 0.2, >= 0.2.6)
83+
dry-core (~> 0.2)
84+
dry-equalizer (~> 0.2)
85+
dry-types (0.13.3)
86+
concurrent-ruby (~> 1.0)
87+
dry-container (~> 0.3)
88+
dry-core (~> 0.4, >= 0.4.4)
89+
dry-equalizer (~> 0.2)
90+
dry-inflector (~> 0.1, >= 0.1.2)
91+
dry-logic (~> 0.4, >= 0.4.2)
92+
erubi (1.7.1)
93+
ffi (1.9.25)
94+
globalid (0.4.1)
95+
activesupport (>= 4.2.0)
96+
graphiti (1.0.beta.15)
97+
activesupport (>= 4.1, < 6)
98+
concurrent-ruby (~> 1.0)
99+
dry-types (~> 0.13)
100+
graphiti_errors (~> 1.0.beta.1)
101+
jsonapi-serializable (~> 0.3.0)
102+
graphiti_errors (1.0.beta.2)
103+
jsonapi-serializable (~> 0.1)
104+
i18n (1.1.1)
105+
concurrent-ruby (~> 1.0)
106+
io-like (0.3.0)
107+
jsonapi-renderer (0.2.0)
108+
jsonapi-serializable (0.3.0)
109+
jsonapi-renderer (~> 0.2.0)
110+
listen (3.1.5)
111+
rb-fsevent (~> 0.9, >= 0.9.4)
112+
rb-inotify (~> 0.9, >= 0.9.7)
113+
ruby_dep (~> 1.2)
114+
loofah (2.2.3)
115+
crass (~> 1.0.2)
116+
nokogiri (>= 1.5.9)
117+
mail (2.7.1)
118+
mini_mime (>= 0.1.1)
119+
marcel (0.3.3)
120+
mimemagic (~> 0.3.2)
121+
method_source (0.9.2)
122+
mimemagic (0.3.2)
123+
mini_mime (1.0.1)
124+
mini_portile2 (2.3.0)
125+
minitest (5.11.3)
126+
msgpack (1.2.4)
127+
nio4r (2.3.1)
128+
nokogiri (1.8.5)
129+
mini_portile2 (~> 2.3.0)
130+
pg (1.1.3)
131+
pry (0.12.2)
132+
coderay (~> 1.1.0)
133+
method_source (~> 0.9.0)
134+
public_suffix (3.0.3)
135+
puma (3.12.0)
136+
rack (2.0.6)
137+
rack-test (1.1.0)
138+
rack (>= 1.0, < 3)
139+
rails (5.2.1)
140+
actioncable (= 5.2.1)
141+
actionmailer (= 5.2.1)
142+
actionpack (= 5.2.1)
143+
actionview (= 5.2.1)
144+
activejob (= 5.2.1)
145+
activemodel (= 5.2.1)
146+
activerecord (= 5.2.1)
147+
activestorage (= 5.2.1)
148+
activesupport (= 5.2.1)
149+
bundler (>= 1.3.0)
150+
railties (= 5.2.1)
151+
sprockets-rails (>= 2.0.0)
152+
rails-dom-testing (2.0.3)
153+
activesupport (>= 4.2.0)
154+
nokogiri (>= 1.6)
155+
rails-html-sanitizer (1.0.4)
156+
loofah (~> 2.2, >= 2.2.2)
157+
railties (5.2.1)
158+
actionpack (= 5.2.1)
159+
activesupport (= 5.2.1)
160+
method_source
161+
rake (>= 0.8.7)
162+
thor (>= 0.19.0, < 2.0)
163+
rake (12.3.1)
164+
rb-fsevent (0.10.3)
165+
rb-inotify (0.9.10)
166+
ffi (>= 0.5.0, < 2)
167+
regexp_parser (1.3.0)
168+
rspec-core (3.8.0)
169+
rspec-support (~> 3.8.0)
170+
rspec-expectations (3.8.2)
171+
diff-lcs (>= 1.2.0, < 2.0)
172+
rspec-support (~> 3.8.0)
173+
rspec-mocks (3.8.0)
174+
diff-lcs (>= 1.2.0, < 2.0)
175+
rspec-support (~> 3.8.0)
176+
rspec-rails (3.8.1)
177+
actionpack (>= 3.0)
178+
activesupport (>= 3.0)
179+
railties (>= 3.0)
180+
rspec-core (~> 3.8.0)
181+
rspec-expectations (~> 3.8.0)
182+
rspec-mocks (~> 3.8.0)
183+
rspec-support (~> 3.8.0)
184+
rspec-support (3.8.0)
185+
ruby_dep (1.5.0)
186+
rubyzip (1.2.2)
187+
selenium-webdriver (3.141.0)
188+
childprocess (~> 0.5)
189+
rubyzip (~> 1.2, >= 1.2.2)
190+
spring (2.0.2)
191+
activesupport (>= 4.2)
192+
spring-watcher-listen (2.0.1)
193+
listen (>= 2.7, < 4.0)
194+
spring (>= 1.2, < 3.0)
195+
sprockets (3.7.2)
196+
concurrent-ruby (~> 1.0)
197+
rack (> 1, < 3)
198+
sprockets-rails (3.2.1)
199+
actionpack (>= 4.0)
200+
activesupport (>= 4.0)
201+
sprockets (>= 3.0.0)
202+
thor (0.20.3)
203+
thread_safe (0.3.6)
204+
tzinfo (1.2.5)
205+
thread_safe (~> 0.1)
206+
web-console (3.7.0)
207+
actionview (>= 5.0)
208+
activemodel (>= 5.0)
209+
bindex (>= 0.4.0)
210+
railties (>= 5.0)
211+
websocket-driver (0.7.0)
212+
websocket-extensions (>= 0.1.0)
213+
websocket-extensions (0.1.3)
214+
xpath (3.2.0)
215+
nokogiri (~> 1.8)
216+
217+
PLATFORMS
218+
ruby
219+
220+
DEPENDENCIES
221+
bootsnap (>= 1.1.0)
222+
byebug
223+
capybara (>= 2.15)
224+
chromedriver-helper
225+
graphiti
226+
listen (>= 3.0.5, < 3.2)
227+
pg
228+
pry
229+
puma (~> 3.11)
230+
rails (~> 5.2.1)
231+
rspec-rails
232+
selenium-webdriver
233+
spring
234+
spring-watcher-listen (~> 2.0.0)
235+
web-console (>= 3.3.0)
236+
237+
RUBY VERSION
238+
ruby 2.5.1p57
239+
240+
BUNDLED WITH
241+
1.16.2

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/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)