Skip to content

Commit 8ca0bcf

Browse files
committed
開発環境の構築
1 parent 3ed2a5a commit 8ca0bcf

File tree

95 files changed

+5606
-1
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

+5606
-1
lines changed

.browserslistrc

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

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ yarn-debug.log*
6767
/storage/*
6868
!/storage/.keep
6969
/public/uploads
70+
71+
# Ignore master key for decrypting credentials and more.
72+
/config/master.key
73+
74+
/public/packs
75+
/public/packs-test
76+
/node_modules
77+
/yarn-error.log
78+
yarn-debug.log*
79+
.yarn-integrity

.ruby-version

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

Booting

Whitespace-only changes.

Dockerfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM ruby:3.3.1
2+
ENV LANG C.UTF-8
3+
ENV TZ Asia/Tokyo
4+
5+
RUN apt-get update -qq \
6+
&& apt-get install -y ca-certificates curl gnupg \
7+
&& mkdir -p /etc/apt/keyrings \
8+
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
9+
&& NODE_MAJOR=18 \
10+
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
11+
&& wget --quiet -O - /tmp/pubkey.gpg https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
12+
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
13+
&& apt-get update -qq \
14+
&& apt-get install -y build-essential default-mysql-client libssl-dev nodejs yarn
15+
16+
RUN mkdir /recipi_ai_assistant
17+
WORKDIR /recipi_ai_assistant
18+
19+
RUN gem install bundler
20+
21+
COPY Gemfile /recipi_ai_assistant/Gemfile
22+
COPY Gemfile.lock /recipi_ai_assistant/Gemfile.lock
23+
COPY yarn.lock /recipi_ai_assistant/yarn.lock
24+
25+
RUN bundle install
26+
RUN yarn install
27+
28+
COPY . /recipi_ai_assistant
29+
30+
CMD ["rails", "server", "-b", "0.0.0.0"]

Gemfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '3.3.1'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 7.1.0'
8+
# Use postgresql as the database for Active Record
9+
gem 'mysql2', '~> 0.5'
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', '>= 4.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+
# Use Active Storage variant
26+
# gem 'image_processing', '~> 1.2'
27+
28+
# Reduces boot times through caching; required in config/boot.rb
29+
gem 'bootsnap', '>= 1.4.4', require: false
30+
31+
group :development, :test do
32+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
33+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
34+
gem 'rspec-rails'
35+
end
36+
37+
group :development do
38+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
39+
gem 'web-console', '>= 4.1.0'
40+
# Display performance information such as SQL time and flame graphs for each request in your browser.
41+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
42+
# gem 'rack-mini-profiler', '~> 2.0' # not yet packaged for Debian
43+
gem 'listen', '~> 3.3'
44+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
45+
gem 'spring'
46+
end
47+
48+
group :test do
49+
# Adds support for Capybara system testing and selenium driver
50+
gem 'capybara', '>= 3.26'
51+
gem 'selenium-webdriver'
52+
end
53+
54+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
55+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)