Skip to content

Commit 5d5db29

Browse files
Initial application setup
1 parent 551456c commit 5d5db29

Some content is hidden

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

49 files changed

+806
-4
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ capybara-*.html
33
.rspec
44
/log
55
/tmp
6-
/db/*.sqlite3
7-
/db/*.sqlite3-journal
86
/public/system
97
/coverage/
108
/spec/tmp
119
*.orig
1210
rerun.txt
1311
pickle-email-*.html
14-
12+
config/database.yml
13+
vendor/bundle/
14+
.idea
15+
.bundle
1516
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
1617
config/initializers/secret_token.rb
1718

1819
# Only include if you have production secrets in this file, which is no longer a Rails default
19-
# config/secrets.yml
20+
config/secrets.yml
2021

2122
# dotenv
2223
# TODO Comment out this rule if environment variables can be committed

Gemfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.2.0'
11+
# Use sqlite3 as the database for Active Record
12+
gem 'mysql2', '~> 0.5.1'
13+
# Use Puma as the app server
14+
gem 'puma', '~> 3.7'
15+
gem 'jsonapi-resources', '~> 0.9.0'
16+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
17+
# gem 'jbuilder', '~> 2.5'
18+
# Use Redis adapter to run Action Cable in production
19+
# gem 'redis', '~> 3.0'
20+
# Use ActiveModel has_secure_password
21+
# gem 'bcrypt', '~> 3.1.7'
22+
23+
# Use Capistrano for deployment
24+
# gem 'capistrano-rails', group: :development
25+
26+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
27+
# gem 'rack-cors'
28+
29+
group :development, :test do
30+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
31+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
32+
end
33+
34+
group :development do
35+
gem 'listen', '>= 3.0.5', '< 3.2'
36+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
37+
gem 'spring'
38+
gem 'spring-watcher-listen', '~> 2.0.0'
39+
end
40+
41+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
42+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
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+
arel (9.0.0)
46+
builder (3.2.3)
47+
byebug (10.0.2)
48+
concurrent-ruby (1.0.5)
49+
crass (1.0.4)
50+
erubi (1.7.1)
51+
ffi (1.9.23)
52+
globalid (0.4.1)
53+
activesupport (>= 4.2.0)
54+
i18n (1.0.1)
55+
concurrent-ruby (~> 1.0)
56+
jsonapi-resources (0.9.0)
57+
activerecord (>= 4.1)
58+
concurrent-ruby
59+
railties (>= 4.1)
60+
listen (3.1.5)
61+
rb-fsevent (~> 0.9, >= 0.9.4)
62+
rb-inotify (~> 0.9, >= 0.9.7)
63+
ruby_dep (~> 1.2)
64+
loofah (2.2.2)
65+
crass (~> 1.0.2)
66+
nokogiri (>= 1.5.9)
67+
mail (2.7.0)
68+
mini_mime (>= 0.1.1)
69+
marcel (0.3.2)
70+
mimemagic (~> 0.3.2)
71+
method_source (0.9.0)
72+
mimemagic (0.3.2)
73+
mini_mime (1.0.0)
74+
mini_portile2 (2.3.0)
75+
minitest (5.11.3)
76+
mysql2 (0.5.1)
77+
nio4r (2.3.1)
78+
nokogiri (1.8.2)
79+
mini_portile2 (~> 2.3.0)
80+
puma (3.11.4)
81+
rack (2.0.5)
82+
rack-test (1.0.0)
83+
rack (>= 1.0, < 3)
84+
rails (5.2.0)
85+
actioncable (= 5.2.0)
86+
actionmailer (= 5.2.0)
87+
actionpack (= 5.2.0)
88+
actionview (= 5.2.0)
89+
activejob (= 5.2.0)
90+
activemodel (= 5.2.0)
91+
activerecord (= 5.2.0)
92+
activestorage (= 5.2.0)
93+
activesupport (= 5.2.0)
94+
bundler (>= 1.3.0)
95+
railties (= 5.2.0)
96+
sprockets-rails (>= 2.0.0)
97+
rails-dom-testing (2.0.3)
98+
activesupport (>= 4.2.0)
99+
nokogiri (>= 1.6)
100+
rails-html-sanitizer (1.0.4)
101+
loofah (~> 2.2, >= 2.2.2)
102+
railties (5.2.0)
103+
actionpack (= 5.2.0)
104+
activesupport (= 5.2.0)
105+
method_source
106+
rake (>= 0.8.7)
107+
thor (>= 0.18.1, < 2.0)
108+
rake (12.3.1)
109+
rb-fsevent (0.10.3)
110+
rb-inotify (0.9.10)
111+
ffi (>= 0.5.0, < 2)
112+
ruby_dep (1.5.0)
113+
spring (2.0.2)
114+
activesupport (>= 4.2)
115+
spring-watcher-listen (2.0.1)
116+
listen (>= 2.7, < 4.0)
117+
spring (>= 1.2, < 3.0)
118+
sprockets (3.7.1)
119+
concurrent-ruby (~> 1.0)
120+
rack (> 1, < 3)
121+
sprockets-rails (3.2.1)
122+
actionpack (>= 4.0)
123+
activesupport (>= 4.0)
124+
sprockets (>= 3.0.0)
125+
thor (0.20.0)
126+
thread_safe (0.3.6)
127+
tzinfo (1.2.5)
128+
thread_safe (~> 0.1)
129+
websocket-driver (0.7.0)
130+
websocket-extensions (>= 0.1.0)
131+
websocket-extensions (0.1.3)
132+
133+
PLATFORMS
134+
ruby
135+
136+
DEPENDENCIES
137+
byebug
138+
jsonapi-resources (~> 0.9.0)
139+
listen (>= 3.0.5, < 3.2)
140+
mysql2 (~> 0.5.1)
141+
puma (~> 3.7)
142+
rails (~> 5.2.0)
143+
spring
144+
spring-watcher-listen (~> 2.0.0)
145+
tzinfo-data
146+
147+
BUNDLED WITH
148+
1.15.3

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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::API
2+
include JSONAPI::ActsAsResourceController
3+
end

app/controllers/concerns/.keep

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ContentsController < ApplicationController
2+
3+
4+
5+
end

app/jobs/application_job.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationJob < ActiveJob::Base
2+
end

0 commit comments

Comments
 (0)