Skip to content

Commit 381a45f

Browse files
committed
Generate Rails skeleton
0 parents  commit 381a45f

Some content is hidden

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

81 files changed

+4029
-0
lines changed

.browserslistrc

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

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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-*
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore pidfiles, but keep the directory.
21+
/tmp/pids/*
22+
!/tmp/pids/
23+
!/tmp/pids/.keep
24+
25+
26+
/public/assets
27+
.byebug_history
28+
29+
# Ignore master key for decrypting credentials and more.
30+
/config/master.key
31+
32+
/public/packs
33+
/public/packs-test
34+
/node_modules
35+
/yarn-error.log
36+
yarn-debug.log*
37+
.yarn-integrity

.ruby-version

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

Gemfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.0.0'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.1.1'
8+
# Use sqlite3 as the database for Active Record
9+
gem 'sqlite3', '~> 1.4'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 5.0'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '>= 6'
14+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15+
gem 'webpacker', '~> 5.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+
# Reduces boot times through caching; required in config/boot.rb
26+
gem 'bootsnap', '>= 1.4.4', require: false
27+
28+
group :development, :test do
29+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
30+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
31+
end
32+
33+
group :development do
34+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
35+
gem 'web-console', '>= 4.1.0'
36+
# Display performance information such as SQL time and flame graphs for each request in your browser.
37+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
38+
gem 'rack-mini-profiler', '~> 2.0'
39+
gem 'listen', '~> 3.3'
40+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
41+
gem 'spring'
42+
end
43+
44+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
45+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.1.1)
5+
actionpack (= 6.1.1)
6+
activesupport (= 6.1.1)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.1)
10+
actionpack (= 6.1.1)
11+
activejob (= 6.1.1)
12+
activerecord (= 6.1.1)
13+
activestorage (= 6.1.1)
14+
activesupport (= 6.1.1)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.1)
17+
actionpack (= 6.1.1)
18+
actionview (= 6.1.1)
19+
activejob (= 6.1.1)
20+
activesupport (= 6.1.1)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.1)
24+
actionview (= 6.1.1)
25+
activesupport (= 6.1.1)
26+
rack (~> 2.0, >= 2.0.9)
27+
rack-test (>= 0.6.3)
28+
rails-dom-testing (~> 2.0)
29+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30+
actiontext (6.1.1)
31+
actionpack (= 6.1.1)
32+
activerecord (= 6.1.1)
33+
activestorage (= 6.1.1)
34+
activesupport (= 6.1.1)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.1)
37+
activesupport (= 6.1.1)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42+
activejob (6.1.1)
43+
activesupport (= 6.1.1)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.1)
46+
activesupport (= 6.1.1)
47+
activerecord (6.1.1)
48+
activemodel (= 6.1.1)
49+
activesupport (= 6.1.1)
50+
activestorage (6.1.1)
51+
actionpack (= 6.1.1)
52+
activejob (= 6.1.1)
53+
activerecord (= 6.1.1)
54+
activesupport (= 6.1.1)
55+
marcel (~> 0.3.1)
56+
mimemagic (~> 0.3.2)
57+
activesupport (6.1.1)
58+
concurrent-ruby (~> 1.0, >= 1.0.2)
59+
i18n (>= 1.6, < 2)
60+
minitest (>= 5.1)
61+
tzinfo (~> 2.0)
62+
zeitwerk (~> 2.3)
63+
bindex (0.8.1)
64+
bootsnap (1.7.2)
65+
msgpack (~> 1.0)
66+
builder (3.2.4)
67+
byebug (11.1.3)
68+
concurrent-ruby (1.1.8)
69+
crass (1.0.6)
70+
erubi (1.10.0)
71+
ffi (1.14.2)
72+
globalid (0.4.2)
73+
activesupport (>= 4.2.0)
74+
i18n (1.8.8)
75+
concurrent-ruby (~> 1.0)
76+
jbuilder (2.11.2)
77+
activesupport (>= 5.0.0)
78+
listen (3.4.1)
79+
rb-fsevent (~> 0.10, >= 0.10.3)
80+
rb-inotify (~> 0.9, >= 0.9.10)
81+
loofah (2.9.0)
82+
crass (~> 1.0.2)
83+
nokogiri (>= 1.5.9)
84+
mail (2.7.1)
85+
mini_mime (>= 0.1.1)
86+
marcel (0.3.3)
87+
mimemagic (~> 0.3.2)
88+
method_source (1.0.0)
89+
mimemagic (0.3.5)
90+
mini_mime (1.0.2)
91+
minitest (5.14.3)
92+
msgpack (1.4.2)
93+
nio4r (2.5.5)
94+
nokogiri (1.11.1-x86_64-darwin)
95+
racc (~> 1.4)
96+
puma (5.2.1)
97+
nio4r (~> 2.0)
98+
racc (1.5.2)
99+
rack (2.2.3)
100+
rack-mini-profiler (2.3.1)
101+
rack (>= 1.2.0)
102+
rack-proxy (0.6.5)
103+
rack
104+
rack-test (1.1.0)
105+
rack (>= 1.0, < 3)
106+
rails (6.1.1)
107+
actioncable (= 6.1.1)
108+
actionmailbox (= 6.1.1)
109+
actionmailer (= 6.1.1)
110+
actionpack (= 6.1.1)
111+
actiontext (= 6.1.1)
112+
actionview (= 6.1.1)
113+
activejob (= 6.1.1)
114+
activemodel (= 6.1.1)
115+
activerecord (= 6.1.1)
116+
activestorage (= 6.1.1)
117+
activesupport (= 6.1.1)
118+
bundler (>= 1.15.0)
119+
railties (= 6.1.1)
120+
sprockets-rails (>= 2.0.0)
121+
rails-dom-testing (2.0.3)
122+
activesupport (>= 4.2.0)
123+
nokogiri (>= 1.6)
124+
rails-html-sanitizer (1.3.0)
125+
loofah (~> 2.3)
126+
railties (6.1.1)
127+
actionpack (= 6.1.1)
128+
activesupport (= 6.1.1)
129+
method_source
130+
rake (>= 0.8.7)
131+
thor (~> 1.0)
132+
rake (13.0.3)
133+
rb-fsevent (0.10.4)
134+
rb-inotify (0.10.1)
135+
ffi (~> 1.0)
136+
sass-rails (6.0.0)
137+
sassc-rails (~> 2.1, >= 2.1.1)
138+
sassc (2.4.0)
139+
ffi (~> 1.9)
140+
sassc-rails (2.1.2)
141+
railties (>= 4.0.0)
142+
sassc (>= 2.0)
143+
sprockets (> 3.0)
144+
sprockets-rails
145+
tilt
146+
semantic_range (2.3.1)
147+
spring (2.1.1)
148+
sprockets (4.0.2)
149+
concurrent-ruby (~> 1.0)
150+
rack (> 1, < 3)
151+
sprockets-rails (3.2.2)
152+
actionpack (>= 4.0)
153+
activesupport (>= 4.0)
154+
sprockets (>= 3.0.0)
155+
sqlite3 (1.4.2)
156+
thor (1.1.0)
157+
tilt (2.0.10)
158+
turbolinks (5.2.1)
159+
turbolinks-source (~> 5.2)
160+
turbolinks-source (5.2.0)
161+
tzinfo (2.0.4)
162+
concurrent-ruby (~> 1.0)
163+
web-console (4.1.0)
164+
actionview (>= 6.0.0)
165+
activemodel (>= 6.0.0)
166+
bindex (>= 0.4.0)
167+
railties (>= 6.0.0)
168+
webpacker (5.2.1)
169+
activesupport (>= 5.2)
170+
rack-proxy (>= 0.6.1)
171+
railties (>= 5.2)
172+
semantic_range (>= 2.3.0)
173+
websocket-driver (0.7.3)
174+
websocket-extensions (>= 0.1.0)
175+
websocket-extensions (0.1.5)
176+
zeitwerk (2.4.2)
177+
178+
PLATFORMS
179+
x86_64-darwin-20
180+
181+
DEPENDENCIES
182+
bootsnap (>= 1.4.4)
183+
byebug
184+
jbuilder (~> 2.7)
185+
listen (~> 3.3)
186+
puma (~> 5.0)
187+
rack-mini-profiler (~> 2.0)
188+
rails (~> 6.1.1)
189+
sass-rails (>= 6)
190+
spring
191+
sqlite3 (~> 1.4)
192+
turbolinks (~> 5)
193+
tzinfo-data
194+
web-console (>= 4.1.0)
195+
webpacker (~> 5.0)
196+
197+
RUBY VERSION
198+
ruby 3.0.0p0
199+
200+
BUNDLED WITH
201+
2.2.3

README.md

Lines changed: 24 additions & 0 deletions
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

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.

0 commit comments

Comments
 (0)