Skip to content

Commit 210ac93

Browse files
committed
initial
0 parents  commit 210ac93

Some content is hidden

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

52 files changed

+978
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
.gitignore
3+
.dockerignore
4+
Dockerfile
5+
node_modules/*
6+
public/packs/*
7+
public/packs-test/*
8+
tmp/*

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
17+
/public/assets
18+
.byebug_history
19+
20+
# Ignore master key for decrypting credentials and more.
21+
/config/master.key

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.6.5

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ruby:2.6.5
2+
3+
RUN apt-get update -qq && \
4+
apt-get install -y build-essential \
5+
libpq-dev \
6+
nodejs
7+
8+
RUN mkdir /app
9+
10+
WORKDIR /app
11+
12+
ADD ./Gemfile Gemfile
13+
ADD ./Gemfile.lock Gemfile.lock
14+
15+
RUN bundle install
16+
ADD . .

Gemfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.5'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.0.2', '>= 6.0.2.1'
8+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
9+
gem 'jbuilder', '~> 2.7'
10+
# Use Active Model has_secure_password
11+
# gem 'bcrypt', '~> 3.1.7'
12+
13+
# Reduces boot times through caching; required in config/boot.rb
14+
gem 'bootsnap', '>= 1.4.2', require: false
15+
16+
group :development, :test do
17+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
18+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
19+
end
20+
21+
group :development do
22+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
23+
gem 'web-console', '>= 3.3.0'
24+
gem 'listen', '>= 3.0.5', '< 3.2'
25+
end
26+
27+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
28+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.0.2.1)
5+
actionpack (= 6.0.2.1)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailbox (6.0.2.1)
9+
actionpack (= 6.0.2.1)
10+
activejob (= 6.0.2.1)
11+
activerecord (= 6.0.2.1)
12+
activestorage (= 6.0.2.1)
13+
activesupport (= 6.0.2.1)
14+
mail (>= 2.7.1)
15+
actionmailer (6.0.2.1)
16+
actionpack (= 6.0.2.1)
17+
actionview (= 6.0.2.1)
18+
activejob (= 6.0.2.1)
19+
mail (~> 2.5, >= 2.5.4)
20+
rails-dom-testing (~> 2.0)
21+
actionpack (6.0.2.1)
22+
actionview (= 6.0.2.1)
23+
activesupport (= 6.0.2.1)
24+
rack (~> 2.0, >= 2.0.8)
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.2.1)
29+
actionpack (= 6.0.2.1)
30+
activerecord (= 6.0.2.1)
31+
activestorage (= 6.0.2.1)
32+
activesupport (= 6.0.2.1)
33+
nokogiri (>= 1.8.5)
34+
actionview (6.0.2.1)
35+
activesupport (= 6.0.2.1)
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.2.1)
41+
activesupport (= 6.0.2.1)
42+
globalid (>= 0.3.6)
43+
activemodel (6.0.2.1)
44+
activesupport (= 6.0.2.1)
45+
activerecord (6.0.2.1)
46+
activemodel (= 6.0.2.1)
47+
activesupport (= 6.0.2.1)
48+
activestorage (6.0.2.1)
49+
actionpack (= 6.0.2.1)
50+
activejob (= 6.0.2.1)
51+
activerecord (= 6.0.2.1)
52+
marcel (~> 0.3.1)
53+
activesupport (6.0.2.1)
54+
concurrent-ruby (~> 1.0, >= 1.0.2)
55+
i18n (>= 0.7, < 2)
56+
minitest (~> 5.1)
57+
tzinfo (~> 1.1)
58+
zeitwerk (~> 2.2)
59+
bindex (0.8.1)
60+
bootsnap (1.4.5)
61+
msgpack (~> 1.0)
62+
builder (3.2.4)
63+
byebug (11.0.1)
64+
concurrent-ruby (1.1.5)
65+
crass (1.0.5)
66+
erubi (1.9.0)
67+
ffi (1.11.3)
68+
globalid (0.4.2)
69+
activesupport (>= 4.2.0)
70+
i18n (1.7.0)
71+
concurrent-ruby (~> 1.0)
72+
jbuilder (2.9.1)
73+
activesupport (>= 4.2.0)
74+
listen (3.1.5)
75+
rb-fsevent (~> 0.9, >= 0.9.4)
76+
rb-inotify (~> 0.9, >= 0.9.7)
77+
ruby_dep (~> 1.2)
78+
loofah (2.4.0)
79+
crass (~> 1.0.2)
80+
nokogiri (>= 1.5.9)
81+
mail (2.7.1)
82+
mini_mime (>= 0.1.1)
83+
marcel (0.3.3)
84+
mimemagic (~> 0.3.2)
85+
method_source (0.9.2)
86+
mimemagic (0.3.3)
87+
mini_mime (1.0.2)
88+
mini_portile2 (2.4.0)
89+
minitest (5.13.0)
90+
msgpack (1.3.1)
91+
nio4r (2.5.2)
92+
nokogiri (1.10.7)
93+
mini_portile2 (~> 2.4.0)
94+
rack (2.0.8)
95+
rack-test (1.1.0)
96+
rack (>= 1.0, < 3)
97+
rails (6.0.2.1)
98+
actioncable (= 6.0.2.1)
99+
actionmailbox (= 6.0.2.1)
100+
actionmailer (= 6.0.2.1)
101+
actionpack (= 6.0.2.1)
102+
actiontext (= 6.0.2.1)
103+
actionview (= 6.0.2.1)
104+
activejob (= 6.0.2.1)
105+
activemodel (= 6.0.2.1)
106+
activerecord (= 6.0.2.1)
107+
activestorage (= 6.0.2.1)
108+
activesupport (= 6.0.2.1)
109+
bundler (>= 1.3.0)
110+
railties (= 6.0.2.1)
111+
sprockets-rails (>= 2.0.0)
112+
rails-dom-testing (2.0.3)
113+
activesupport (>= 4.2.0)
114+
nokogiri (>= 1.6)
115+
rails-html-sanitizer (1.3.0)
116+
loofah (~> 2.3)
117+
railties (6.0.2.1)
118+
actionpack (= 6.0.2.1)
119+
activesupport (= 6.0.2.1)
120+
method_source
121+
rake (>= 0.8.7)
122+
thor (>= 0.20.3, < 2.0)
123+
rake (13.0.1)
124+
rb-fsevent (0.10.3)
125+
rb-inotify (0.10.0)
126+
ffi (~> 1.0)
127+
ruby_dep (1.5.0)
128+
sprockets (4.0.0)
129+
concurrent-ruby (~> 1.0)
130+
rack (> 1, < 3)
131+
sprockets-rails (3.2.1)
132+
actionpack (>= 4.0)
133+
activesupport (>= 4.0)
134+
sprockets (>= 3.0.0)
135+
thor (1.0.1)
136+
thread_safe (0.3.6)
137+
tzinfo (1.2.5)
138+
thread_safe (~> 0.1)
139+
web-console (4.0.1)
140+
actionview (>= 6.0.0)
141+
activemodel (>= 6.0.0)
142+
bindex (>= 0.4.0)
143+
railties (>= 6.0.0)
144+
websocket-driver (0.7.1)
145+
websocket-extensions (>= 0.1.0)
146+
websocket-extensions (0.1.4)
147+
zeitwerk (2.2.2)
148+
149+
PLATFORMS
150+
ruby
151+
152+
DEPENDENCIES
153+
bootsnap (>= 1.4.2)
154+
byebug
155+
jbuilder (~> 2.7)
156+
listen (>= 3.0.5, < 3.2)
157+
rails (~> 6.0.2, >= 6.0.2.1)
158+
tzinfo-data
159+
web-console (>= 3.3.0)
160+
161+
RUBY VERSION
162+
ruby 2.6.5p114
163+
164+
BUNDLED WITH
165+
1.17.2

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# README
2+
3+
4+
5+
### Rails new command
6+
```
7+
docker-compose run web rails new . -f --skip-action-mailer --skip-action-mailbox --skip-action-text --skip-active-record --skip-active-storage --skip-puma --skip-action-cable --skip-sprockets --skip-spring --skip-javascript --skip-turbolinks --skip-test --skip-webpack-install
8+
```

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

app/assets/config/manifest.js

Lines changed: 2 additions & 0 deletions
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.
Lines changed: 15 additions & 0 deletions
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+
*/
Lines changed: 2 additions & 0 deletions
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/helpers/application_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/jobs/application_job.rb

Lines changed: 7 additions & 0 deletions
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/models/concerns/.keep

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>App</title>
5+
<%= csrf_meta_tags %>
6+
<%= csp_meta_tag %>
7+
8+
<%= stylesheet_link_tag 'application', media: 'all' %>
9+
</head>
10+
11+
<body>
12+
<%= yield %>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)