Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bartmichalak committed Dec 20, 2024
0 parents commit d4217ae
Show file tree
Hide file tree
Showing 167 changed files with 333,363 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.

# Ignore git directory.
/.git/
/.gitignore

# Ignore bundler config.
/.bundle

# Ignore all environment files (except templates).
/.env*
!/.env*.erb

# Ignore all default key files.
/config/master.key
/config/credentials/*.key

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/.keep

# Ignore storage (uploaded files in development and any SQLite databases).
/storage/*
!/storage/.keep
/tmp/storage/*
!/tmp/storage/.keep

# Ignore assets.
/node_modules/
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets

# Ignore CI service files.
/.github

# Ignore development files
/.devcontainer

# Ignore Docker-related files
/.dockerignore
/Dockerfile*
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = false
charset = utf-8
indent_style = space
indent_size = 2
23 changes: 23 additions & 0 deletions .erdconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
attributes:
- content
- foreign_key
- inheritance
- timestamps
disconnected: true
filename: database_diagram
filetype: png
indirect: true
inheritance: false
markup: true
notation: simple
orientation: horizontal
polymorphism: true
sort: true
warn: true
title: Database ERD diagram
exclude: "ActiveRecord::InternalMetadata,ActiveRecord::SchemaMigration,ApplicationRecord"
only: null
only_recursion_depth: null
prepend_primary: false
cluster: false
splines: spline
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
# config/credentials/*.yml.enc diff=rails_credentials
config/credentials.yml.enc diff=rails_credentials
67 changes: 67 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep
!/tmp/temp_files/
/tmp/temp_files/*
/tmp/temp_files/*
!/tmp/temp_files/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
/config/production.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
coverage
junit.xml
/doc/api/*
.idea
.env

# Ignore RSpec examples file
/spec/examples.txt

# Ignore uploaded files
public/uploads

database_consistency_*

/app/assets/builds/*
!/app/assets/builds/.keep

vendor/bundle
vendor/.bun

/config/credentials/production.key
8 changes: 8 additions & 0 deletions .pryrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

begin
require "amazing_print"
AmazingPrint.pry!
rescue LoadError
puts "Install amazing_print first!"
end
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require rails_helper
62 changes: 62 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
inherit_gem:
relaxed-rubocop: .rubocop.yml

require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec

AllCops:
DisplayCopNames: true
TargetRubyVersion: 3.3
NewCops: enable
Exclude:
- db/schema.rb
- bin/spring
- config/deploy.rb
- vendor/**/*
- bin/*
- node_modules/**/*

Metrics/BlockLength:
Exclude:
- "**/config/**/*.rb"
- "**/spec/**/*.rb"
- "**/app/admin/**/*.rb"
- "**/app/views/**/*.json.jbuilder"

Style/CollectionMethods:
PreferredMethods:
find: detect
reduce: inject
collect: map
find_all: select
filter: reject

Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table

Bundler/OrderedGems:
Enabled: true

Style/StringLiterals:
EnforcedStyle: double_quotes
Enabled: true

Style/BlockDelimiters:
EnforcedStyle: line_count_based

Layout/DotPosition:
EnforcedStyle: leading

Rails/FilePath:
Enabled: false

RSpec/EmptyExampleGroup:
Exclude:
- "**/spec/requests/**/*.rb"

RSpec/VariableName:
Exclude:
- "**/spec/requests/**/*.rb"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.5
77 changes: 77 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "amazing_print"
gem "bcrypt"
gem "bootsnap", ">= 1.4.2", require: false
gem 'duckdb'
gem "dry-monads"
gem "dry-validation"
gem "faraday"
gem "faraday-cookie_jar"
gem "foreman"
gem "hiredis-client"
gem "importmap-rails"
gem "lograge"
gem "oj"
gem "pagy"
gem "pg"
gem "pry"
gem "pry-byebug"
gem "pry-rails"
gem "puma"
gem "rack-cors", require: "rack/cors"
gem "rails", "~> 8"
gem "redis"
gem "sentry-rails"
gem "sentry-ruby"
gem "sentry-sidekiq"
gem "sidekiq"
gem "sprockets-rails"
gem "stimulus-rails"
gem "tailwindcss-rails", "~> 3.0"
gem "turbo-rails"

group :development do
gem "active_record_query_trace"
gem "annotate"
gem "better_errors"
gem "binding_of_caller"
gem "brakeman", require: false
gem "bundler-audit"
gem "database_consistency"
gem "rails_best_practices"
gem "rails-erd"
gem "relaxed-rubocop"
gem "rubocop", require: false
gem "rubocop-performance", require: false
gem "rubocop-rails", require: false
gem "rubocop-rspec", require: false
gem "traceroute"
end

group :test do
gem "database_cleaner"
gem "database_cleaner-active_record"
gem "database_cleaner-redis"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "simplecov", require: false
gem "simplecov-cobertura", require: false
gem "timecop"
gem "webmock"
end

group :development, :test do
gem "listen"
gem "shoulda-matchers"
gem "spring"
gem "spring-watcher-listen"
end

group :development, :test, :staging do
gem "factory_bot"
gem "factory_bot_rails"
gem "faker"
end
Loading

0 comments on commit d4217ae

Please sign in to comment.