Skip to content

Commit b6aea2b

Browse files
committed
Initial commit
0 parents  commit b6aea2b

Some content is hidden

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

55 files changed

+1104
-0
lines changed

.gitignore

+24
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 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+
.byebug_history
20+
21+
# Ignore master key for decrypting credentials and more.
22+
/config/master.key
23+
24+
db/postgres

.ruby-version

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

Gemfile

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.2'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.0.0'
8+
9+
# Use postgresql as the database for Active Record
10+
gem 'pg', '>= 0.18', '< 2.0'
11+
12+
# Build JSON APIs
13+
gem "fast_jsonapi"
14+
15+
# Use Redis adapter to run Action Cable in production
16+
gem 'redis', '~> 4.0'
17+
gem "hiredis", "~> 0.6"
18+
19+
# Use Active Model has_secure_password
20+
# gem 'bcrypt', '~> 3.1.7'
21+
22+
# Use Active Storage variant
23+
# gem 'image_processing', '~> 1.2'
24+
25+
# Reduces boot times through caching; required in config/boot.rb
26+
gem 'bootsnap', '>= 1.4.2', require: false
27+
28+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
29+
# gem 'rack-cors'
30+
31+
# Web server
32+
gem "puma"
33+
34+
group :development, :test do
35+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
36+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
37+
gem "foreman"
38+
end
39+
40+
group :development do
41+
gem 'listen', '>= 3.0.5', '< 3.2'
42+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
43+
gem 'spring'
44+
gem 'spring-watcher-listen', '~> 2.0.0'
45+
end
46+
47+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
48+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
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+
bootsnap (1.4.5)
60+
msgpack (~> 1.0)
61+
builder (3.2.3)
62+
byebug (11.0.1)
63+
concurrent-ruby (1.1.5)
64+
crass (1.0.4)
65+
dotenv (0.7.0)
66+
erubi (1.8.0)
67+
fast_jsonapi (1.5)
68+
activesupport (>= 4.2)
69+
ffi (1.11.1)
70+
foreman (0.64.0)
71+
dotenv (~> 0.7.0)
72+
thor (>= 0.13.6)
73+
globalid (0.4.2)
74+
activesupport (>= 4.2.0)
75+
hiredis (0.6.3)
76+
i18n (1.6.0)
77+
concurrent-ruby (~> 1.0)
78+
listen (3.1.5)
79+
rb-fsevent (~> 0.9, >= 0.9.4)
80+
rb-inotify (~> 0.9, >= 0.9.7)
81+
ruby_dep (~> 1.2)
82+
loofah (2.2.3)
83+
crass (~> 1.0.2)
84+
nokogiri (>= 1.5.9)
85+
mail (2.7.1)
86+
mini_mime (>= 0.1.1)
87+
marcel (0.3.3)
88+
mimemagic (~> 0.3.2)
89+
method_source (0.9.2)
90+
mimemagic (0.3.3)
91+
mini_mime (1.0.2)
92+
mini_portile2 (2.4.0)
93+
minitest (5.11.3)
94+
msgpack (1.3.1)
95+
nio4r (2.5.1)
96+
nokogiri (1.10.4)
97+
mini_portile2 (~> 2.4.0)
98+
pg (1.1.4)
99+
puma (4.1.0)
100+
nio4r (~> 2.0)
101+
rack (2.0.7)
102+
rack-test (1.1.0)
103+
rack (>= 1.0, < 3)
104+
rails (6.0.0)
105+
actioncable (= 6.0.0)
106+
actionmailbox (= 6.0.0)
107+
actionmailer (= 6.0.0)
108+
actionpack (= 6.0.0)
109+
actiontext (= 6.0.0)
110+
actionview (= 6.0.0)
111+
activejob (= 6.0.0)
112+
activemodel (= 6.0.0)
113+
activerecord (= 6.0.0)
114+
activestorage (= 6.0.0)
115+
activesupport (= 6.0.0)
116+
bundler (>= 1.3.0)
117+
railties (= 6.0.0)
118+
sprockets-rails (>= 2.0.0)
119+
rails-dom-testing (2.0.3)
120+
activesupport (>= 4.2.0)
121+
nokogiri (>= 1.6)
122+
rails-html-sanitizer (1.2.0)
123+
loofah (~> 2.2, >= 2.2.2)
124+
railties (6.0.0)
125+
actionpack (= 6.0.0)
126+
activesupport (= 6.0.0)
127+
method_source
128+
rake (>= 0.8.7)
129+
thor (>= 0.20.3, < 2.0)
130+
rake (12.3.3)
131+
rb-fsevent (0.10.3)
132+
rb-inotify (0.10.0)
133+
ffi (~> 1.0)
134+
redis (4.1.2)
135+
ruby_dep (1.5.0)
136+
spring (2.1.0)
137+
spring-watcher-listen (2.0.1)
138+
listen (>= 2.7, < 4.0)
139+
spring (>= 1.2, < 3.0)
140+
sprockets (3.7.2)
141+
concurrent-ruby (~> 1.0)
142+
rack (> 1, < 3)
143+
sprockets-rails (3.2.1)
144+
actionpack (>= 4.0)
145+
activesupport (>= 4.0)
146+
sprockets (>= 3.0.0)
147+
thor (0.20.3)
148+
thread_safe (0.3.6)
149+
tzinfo (1.2.5)
150+
thread_safe (~> 0.1)
151+
websocket-driver (0.7.1)
152+
websocket-extensions (>= 0.1.0)
153+
websocket-extensions (0.1.4)
154+
zeitwerk (2.1.10)
155+
156+
PLATFORMS
157+
ruby
158+
159+
DEPENDENCIES
160+
bootsnap (>= 1.4.2)
161+
byebug
162+
fast_jsonapi
163+
foreman
164+
hiredis (~> 0.6)
165+
listen (>= 3.0.5, < 3.2)
166+
pg (>= 0.18, < 2.0)
167+
puma
168+
rails (~> 6.0.0)
169+
redis (~> 4.0)
170+
spring
171+
spring-watcher-listen (~> 2.0.0)
172+
tzinfo-data
173+
174+
RUBY VERSION
175+
ruby 2.6.2p47
176+
177+
BUNDLED WITH
178+
1.17.2

Procfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
web: bundle exec puma
2+
db: postgres -D db/postgres
3+
redis: redis-server

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
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::API
2+
end

app/controllers/concerns/.keep

Whitespace-only changes.

app/jobs/application_job.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ApplicationJob < ActiveJob::Base
2+
# Automatically retry jobs that encountered a deadlock
3+
# retry_on ActiveRecord::Deadlocked
4+
5+
# Most jobs are safe to ignore if the underlying records are no longer available
6+
# discard_on ActiveJob::DeserializationError
7+
end

app/mailers/application_mailer.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: '[email protected]'
3+
layout 'mailer'
4+
end

app/models/application_record.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
self.abstract_class = true
3+
end

app/models/concerns/.keep

Whitespace-only changes.

app/models/user.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class User < ApplicationRecord
2+
end

app/views/layouts/mailer.html.erb

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<style>
6+
/* Email styles need to be inline */
7+
</style>
8+
</head>
9+
10+
<body>
11+
<%= yield %>
12+
</body>
13+
</html>

app/views/layouts/mailer.text.erb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= yield %>

0 commit comments

Comments
 (0)