Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco.loreti committed Feb 8, 2022
0 parents commit 641af34
Show file tree
Hide file tree
Showing 230 changed files with 8,288 additions and 0 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
1 change: 1 addition & 0 deletions .foreman
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
procfile: Procfile.dev
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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 the yarn lockfile as having been generated.
yarn.lock linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.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/credentials.yml.enc

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity

config/settings.local.yml
config/settings/*.local.yml
config/environments/*.local.yml

/app/assets/builds/*
!/app/assets/builds/.keep
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
domando
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.0.3
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Dockerfile.rails
FROM ruby:3.0.3-slim AS rails-toolbox
MAINTAINER Marco Spasiano <[email protected]>

ARG USER_ID
ARG GROUP_ID
ENV INSTALL_PATH /opt/app

RUN addgroup --gid $GROUP_ID user
RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user

# add repositories and install dependencies
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends wget gnupg ;\
wget --quiet -O - https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - ;\
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list ;\
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ;\
echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list ;\
apt-get update ;\
apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
imagemagick \
postgresql-client \
libpq-dev \
nodejs \
yarn \
libvips-dev ;\
rm -rf /var/lib/apt/lists/*

RUN mkdir -p $INSTALL_PATH

WORKDIR $INSTALL_PATH
COPY . .

# Install app
RUN rm -rf node_modules vendor ;\
gem install bundler ;\
bundle install ;\
yarn install ;\
chown -R user:user /opt/app

USER $USER_ID
69 changes: 69 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.3'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 7.0.0'
# Use postgresql as the database for Active Record
gem 'pg', '1.3.0' # '~> 1.1'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 6.0'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

gem 'jsbundling-rails'
gem "cssbundling-rails"

gem 'sprockets-rails'

# Use Active Storage variant
gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '~> 1.9.3', require: false

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
gem 'letter_opener'
end

group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
gem 'database_cleaner'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'turbo-rails', '~> 1.0.0'
gem 'stimulus-rails'
gem 'config'
gem 'active_storage_validations'
gem 'devise', '~> 4.8.0'
gem 'rack-cas'
gem 'devise_cas_authenticatable', '~> 2.0'
gem 'acts-as-taggable-on', '~> 9.0.0'
gem 'cancancan'
gem 'hamlit'
gem 'hamlit-rails'
gem 'high_voltage'
gem 'pagy'
gem 'route_translator'
gem 'pg_search', '~> 2.3', '>= 2.3.6'
Loading

0 comments on commit 641af34

Please sign in to comment.