Skip to content

Commit 8db5e16

Browse files
committed
Add pet generator
0 parents  commit 8db5e16

File tree

95 files changed

+2174
-0
lines changed

Some content is hidden

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

95 files changed

+2174
-0
lines changed

.browserslistrc

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

.gitattributes

+10
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

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 pidfiles, but keep the directory.
17+
/tmp/pids/*
18+
!/tmp/pids/
19+
!/tmp/pids/.keep
20+
21+
# Ignore uploaded files in development.
22+
/storage/*
23+
!/storage/.keep
24+
25+
/public/assets
26+
.byebug_history
27+
28+
# Ignore master key for decrypting credentials and more.
29+
/config/master.key
30+
31+
/public/packs
32+
/public/packs-test
33+
/node_modules
34+
/yarn-error.log
35+
yarn-debug.log*
36+
.yarn-integrity

.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+
ruby-3.1.0@global

Dockerfile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Make sure it matches the Ruby version in .ruby-version and Gemfile
2+
ARG RUBY_VERSION=3.1.0
3+
FROM ruby:$RUBY_VERSION
4+
5+
# Install libvips for Active Storage preview support
6+
RUN apt-get update -qq && \
7+
apt-get install -y build-essential libvips && \
8+
apt-get clean && \
9+
rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man
10+
11+
# Rails app lives here
12+
WORKDIR /rails
13+
14+
# Set production environment
15+
ENV RAILS_LOG_TO_STDOUT="1" \
16+
RAILS_SERVE_STATIC_FILES="true" \
17+
RAILS_ENV="production" \
18+
BUNDLE_WITHOUT="development"
19+
20+
# Install application gems
21+
COPY Gemfile Gemfile.lock ./
22+
RUN bundle install
23+
24+
# Copy application code
25+
COPY . .
26+
27+
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
28+
RUN SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile
29+
30+
# Entrypoint prepares the database.
31+
RUN chmod +x /rails/bin/docker-entrypoint
32+
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
33+
34+
# Start the server by default, this can be overwritten at runtime
35+
EXPOSE 3000
36+
CMD ["./bin/rails", "server"]

Gemfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.1.0'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 6.1.7', '>= 6.1.7.6'
8+
# Use postgresql as the database for Active Record
9+
gem 'pg', '~> 1.1'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 5.0'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '>= 6'
14+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
15+
gem 'jbuilder', '~> 2.7'
16+
# Use Redis adapter to run Action Cable in production
17+
# gem 'redis', '~> 4.0'
18+
# Use Active Model has_secure_password
19+
# gem 'bcrypt', '~> 3.1.7'
20+
21+
# Use Active Storage variant
22+
# gem 'image_processing', '~> 1.2'
23+
gem 'faker', '~> 2.18.0'
24+
25+
gem 'faraday', '~> 1.4.3'
26+
27+
gem 'kaminari', '~> 1.2.2'
28+
29+
group :development do
30+
gem 'spring'
31+
gem 'listen', '~> 3.3'
32+
gem "debug", ">= 1.0.0"
33+
end
34+
35+
group :test do
36+
gem "rspec-rails", "~> 5.0.0"
37+
gem "factory_bot_rails", "~> 6.2.0"
38+
end

Gemfile.lock

+239
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.1.7.6)
5+
actionpack (= 6.1.7.6)
6+
activesupport (= 6.1.7.6)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.7.6)
10+
actionpack (= 6.1.7.6)
11+
activejob (= 6.1.7.6)
12+
activerecord (= 6.1.7.6)
13+
activestorage (= 6.1.7.6)
14+
activesupport (= 6.1.7.6)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.7.6)
17+
actionpack (= 6.1.7.6)
18+
actionview (= 6.1.7.6)
19+
activejob (= 6.1.7.6)
20+
activesupport (= 6.1.7.6)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.7.6)
24+
actionview (= 6.1.7.6)
25+
activesupport (= 6.1.7.6)
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.7.6)
31+
actionpack (= 6.1.7.6)
32+
activerecord (= 6.1.7.6)
33+
activestorage (= 6.1.7.6)
34+
activesupport (= 6.1.7.6)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.7.6)
37+
activesupport (= 6.1.7.6)
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.7.6)
43+
activesupport (= 6.1.7.6)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.7.6)
46+
activesupport (= 6.1.7.6)
47+
activerecord (6.1.7.6)
48+
activemodel (= 6.1.7.6)
49+
activesupport (= 6.1.7.6)
50+
activestorage (6.1.7.6)
51+
actionpack (= 6.1.7.6)
52+
activejob (= 6.1.7.6)
53+
activerecord (= 6.1.7.6)
54+
activesupport (= 6.1.7.6)
55+
marcel (~> 1.0)
56+
mini_mime (>= 1.1.0)
57+
activesupport (6.1.7.6)
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+
builder (3.2.4)
64+
concurrent-ruby (1.2.2)
65+
crass (1.0.6)
66+
date (3.3.4)
67+
debug (1.4.0)
68+
irb (>= 1.3.6)
69+
reline (>= 0.2.7)
70+
diff-lcs (1.5.0)
71+
erubi (1.12.0)
72+
factory_bot (6.2.1)
73+
activesupport (>= 5.0.0)
74+
factory_bot_rails (6.2.0)
75+
factory_bot (~> 6.2.0)
76+
railties (>= 5.0.0)
77+
faker (2.18.0)
78+
i18n (>= 1.6, < 2)
79+
faraday (1.4.3)
80+
faraday-em_http (~> 1.0)
81+
faraday-em_synchrony (~> 1.0)
82+
faraday-excon (~> 1.1)
83+
faraday-net_http (~> 1.0)
84+
faraday-net_http_persistent (~> 1.1)
85+
multipart-post (>= 1.2, < 3)
86+
ruby2_keywords (>= 0.0.4)
87+
faraday-em_http (1.0.0)
88+
faraday-em_synchrony (1.0.0)
89+
faraday-excon (1.1.0)
90+
faraday-net_http (1.0.1)
91+
faraday-net_http_persistent (1.2.0)
92+
ffi (1.16.3)
93+
globalid (1.2.1)
94+
activesupport (>= 6.1)
95+
i18n (1.14.1)
96+
concurrent-ruby (~> 1.0)
97+
io-console (0.5.10)
98+
irb (1.4.1)
99+
reline (>= 0.3.0)
100+
jbuilder (2.11.5)
101+
actionview (>= 5.0.0)
102+
activesupport (>= 5.0.0)
103+
listen (3.8.0)
104+
rb-fsevent (~> 0.10, >= 0.10.3)
105+
rb-inotify (~> 0.9, >= 0.9.10)
106+
loofah (2.22.0)
107+
crass (~> 1.0.2)
108+
nokogiri (>= 1.12.0)
109+
mail (2.8.1)
110+
mini_mime (>= 0.1.1)
111+
net-imap
112+
net-pop
113+
net-smtp
114+
marcel (1.0.2)
115+
method_source (1.0.0)
116+
mini_mime (1.1.5)
117+
minitest (5.20.0)
118+
multipart-post (2.3.0)
119+
net-imap (0.4.9)
120+
date
121+
net-protocol
122+
net-pop (0.1.2)
123+
net-protocol
124+
net-protocol (0.2.2)
125+
timeout
126+
net-smtp (0.4.0)
127+
net-protocol
128+
nio4r (2.7.0)
129+
nokogiri (1.16.0-arm64-darwin)
130+
racc (~> 1.4)
131+
pg (1.5.4)
132+
puma (5.6.7)
133+
nio4r (~> 2.0)
134+
racc (1.7.3)
135+
rack (2.2.8)
136+
rack-test (2.1.0)
137+
rack (>= 1.3)
138+
rails (6.1.7.6)
139+
actioncable (= 6.1.7.6)
140+
actionmailbox (= 6.1.7.6)
141+
actionmailer (= 6.1.7.6)
142+
actionpack (= 6.1.7.6)
143+
actiontext (= 6.1.7.6)
144+
actionview (= 6.1.7.6)
145+
activejob (= 6.1.7.6)
146+
activemodel (= 6.1.7.6)
147+
activerecord (= 6.1.7.6)
148+
activestorage (= 6.1.7.6)
149+
activesupport (= 6.1.7.6)
150+
bundler (>= 1.15.0)
151+
railties (= 6.1.7.6)
152+
sprockets-rails (>= 2.0.0)
153+
rails-dom-testing (2.2.0)
154+
activesupport (>= 5.0.0)
155+
minitest
156+
nokogiri (>= 1.6)
157+
rails-html-sanitizer (1.6.0)
158+
loofah (~> 2.21)
159+
nokogiri (~> 1.14)
160+
railties (6.1.7.6)
161+
actionpack (= 6.1.7.6)
162+
activesupport (= 6.1.7.6)
163+
method_source
164+
rake (>= 12.2)
165+
thor (~> 1.0)
166+
rake (13.1.0)
167+
rb-fsevent (0.11.2)
168+
rb-inotify (0.10.1)
169+
ffi (~> 1.0)
170+
reline (0.3.0)
171+
io-console (~> 0.5)
172+
rspec-core (3.12.2)
173+
rspec-support (~> 3.12.0)
174+
rspec-expectations (3.12.3)
175+
diff-lcs (>= 1.2.0, < 2.0)
176+
rspec-support (~> 3.12.0)
177+
rspec-mocks (3.12.6)
178+
diff-lcs (>= 1.2.0, < 2.0)
179+
rspec-support (~> 3.12.0)
180+
rspec-rails (5.0.3)
181+
actionpack (>= 5.2)
182+
activesupport (>= 5.2)
183+
railties (>= 5.2)
184+
rspec-core (~> 3.10)
185+
rspec-expectations (~> 3.10)
186+
rspec-mocks (~> 3.10)
187+
rspec-support (~> 3.10)
188+
rspec-support (3.12.1)
189+
ruby2_keywords (0.0.5)
190+
sass-rails (6.0.0)
191+
sassc-rails (~> 2.1, >= 2.1.1)
192+
sassc (2.4.0)
193+
ffi (~> 1.9)
194+
sassc-rails (2.1.2)
195+
railties (>= 4.0.0)
196+
sassc (>= 2.0)
197+
sprockets (> 3.0)
198+
sprockets-rails
199+
tilt
200+
spring (4.1.3)
201+
sprockets (4.2.1)
202+
concurrent-ruby (~> 1.0)
203+
rack (>= 2.2.4, < 4)
204+
sprockets-rails (3.4.2)
205+
actionpack (>= 5.2)
206+
activesupport (>= 5.2)
207+
sprockets (>= 3.0.0)
208+
thor (1.3.0)
209+
tilt (2.3.0)
210+
timeout (0.4.1)
211+
tzinfo (2.0.6)
212+
concurrent-ruby (~> 1.0)
213+
websocket-driver (0.7.6)
214+
websocket-extensions (>= 0.1.0)
215+
websocket-extensions (0.1.5)
216+
zeitwerk (2.6.12)
217+
218+
PLATFORMS
219+
arm64-darwin-21
220+
221+
DEPENDENCIES
222+
debug (>= 1.0.0)
223+
factory_bot_rails (~> 6.2.0)
224+
faker (~> 2.18.0)
225+
faraday (~> 1.4.3)
226+
jbuilder (~> 2.7)
227+
listen (~> 3.3)
228+
pg (~> 1.1)
229+
puma (~> 5.0)
230+
rails (~> 6.1.7, >= 6.1.7.6)
231+
rspec-rails (~> 5.0.0)
232+
sass-rails (>= 6)
233+
spring
234+
235+
RUBY VERSION
236+
ruby 3.1.0p0
237+
238+
BUNDLED WITH
239+
2.3.3

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+
* ...

0 commit comments

Comments
 (0)