Skip to content

Commit f23c6b6

Browse files
committed
Installed rails, docker, and dartsass-rails
1 parent 9e20b6d commit f23c6b6

Some content is hidden

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

85 files changed

+1570
-1
lines changed

.docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ruby:3.2.2-bookworm
2+
3+
WORKDIR /app
4+
5+
EXPOSE 3000

.docker/docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: '3.8'
2+
3+
name: rails-starterpack
4+
5+
services:
6+
mailhog:
7+
image: docker.io/mailhog/mailhog
8+
ports:
9+
- 8025:8025
10+
db:
11+
image: postgres
12+
volumes:
13+
- ../tmp/db:/var/lib/postgresql/data
14+
environment:
15+
POSTGRES_PASSWORD: password
16+
web:
17+
build:
18+
context: ..
19+
dockerfile: '.docker/Dockerfile'
20+
command: 'sh .docker/entrypoint.sh'
21+
volumes:
22+
- ..:/app
23+
- ../tmp/bundle:/usr/local/bundle
24+
env_file:
25+
- ../.env
26+
ports:
27+
- '3000:3000'
28+
depends_on:
29+
- db
30+
- mailhog
31+
environment:
32+
DATABASE_URL: postgresql://postgres:password@db

.docker/entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bundle install
2+
3+
rm -f /app/tmp/pids/server.pid
4+
5+
rails db:create
6+
rails db:seed
7+
8+
/app/bin/dev

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 any vendored files as having been vendored.
7+
vendor/* linguist-vendored
8+
config/credentials/*.yml.enc diff=rails_credentials
9+
config/credentials.yml.enc diff=rails_credentials

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 environment files (except templates).
11+
/.env*
12+
!/.env*.erb
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+
# Ignore storage (uploaded files in development and any SQLite databases).
26+
/storage/*
27+
!/storage/.keep
28+
/tmp/storage/*
29+
!/tmp/storage/
30+
!/tmp/storage/.keep
31+
32+
/public/assets
33+
34+
# Ignore master key for decrypting credentials and more.
35+
/config/master.key
36+
37+
/app/assets/builds/*
38+
!/app/assets/builds/.keep

.ruby-version

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

Gemfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
source "https://rubygems.org"
2+
3+
ruby "3.2.2"
4+
5+
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
6+
gem "rails", "~> 7.1.2"
7+
8+
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
9+
gem "sprockets-rails"
10+
11+
# Use postgresql as the database for Active Record
12+
gem "pg", "~> 1.1"
13+
14+
# Use the Puma web server [https://github.com/puma/puma]
15+
gem "puma", ">= 5.0"
16+
17+
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
18+
gem "importmap-rails"
19+
20+
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
21+
gem "turbo-rails"
22+
23+
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
24+
gem "stimulus-rails"
25+
26+
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
27+
gem "jbuilder"
28+
29+
# Use Redis adapter to run Action Cable in production
30+
# gem "redis", ">= 4.0.1"
31+
32+
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
33+
# gem "kredis"
34+
35+
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
36+
# gem "bcrypt", "~> 3.1.7"
37+
38+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
39+
gem "tzinfo-data", platforms: %i[ windows jruby ]
40+
41+
# Reduces boot times through caching; required in config/boot.rb
42+
gem "bootsnap", require: false
43+
44+
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
45+
# gem "image_processing", "~> 1.2"
46+
47+
gem "dartsass-rails", "~> 0.5.0"
48+
49+
group :development, :test do
50+
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
51+
gem "debug", platforms: %i[ mri windows ]
52+
end
53+
54+
group :development do
55+
# Use console on exceptions pages [https://github.com/rails/web-console]
56+
gem "web-console"
57+
58+
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
59+
# gem "rack-mini-profiler"
60+
61+
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
62+
# gem "spring"
63+
end
64+
65+
group :test do
66+
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
67+
gem "capybara"
68+
gem "selenium-webdriver"
69+
end

0 commit comments

Comments
 (0)