Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e831089
migrate project to rails 7 + dockerization
T-Guerrero Mar 14, 2022
22ed67e
Merge pull request #1 from recepcaoimeusp/rails7/migration
comissaoimeusp Mar 14, 2022
ca18ab6
hotfix: Remove .env file
T-Guerrero Mar 14, 2022
be88d56
hotfix: add env vars to db name
T-Guerrero Mar 14, 2022
3d92e4b
*hotfix: adicionar cores amarelo e azul
comissaoimeusp Mar 14, 2022
b551584
*hotfix: corrigir erro da variável bixe_path
comissaoimeusp Mar 22, 2022
baea56d
Adiciona compatibilidade com versões ARM do container
josemayer Mar 8, 2023
cb6d030
Modifica cores das equipes
josemayer Mar 8, 2023
3d80391
Merge pull request #6 from recepcaoimeusp/updateTeamColors
josemayer Mar 8, 2023
45b97ef
Adiciona gerenciamento de produtos comprados
josemayer Mar 9, 2023
e402426
Modifica aviso de remoção de produto
josemayer Mar 11, 2023
fa2d192
Adiciona módulo helper dos produtos
josemayer Mar 11, 2023
9865e7d
Adiciona quantidades e variável de indicação do Kit
josemayer Mar 11, 2023
1bd7b7a
Merge pull request #7 from recepcaoimeusp/criaVendaKit
josemayer Mar 11, 2023
783b035
Fix some gems compatibility issues
josemayer Jan 11, 2024
1ed0940
adicionado suporte para quantidade de itens
Renatata-H Feb 7, 2024
96f3154
adicionado suporte para quantidade de produtos
Renatata-H Feb 7, 2024
b6d2ad1
Add container and remove spacings with margins and tags
josemayer Feb 10, 2024
13c9ff9
Update user interaction and design to increment and decrement buttons
josemayer Feb 10, 2024
c4fd2be
Add highlight to number input if quantity is greater than 0
josemayer Feb 10, 2024
579edd4
Merge pull request #8 from recepcaoimeusp/new/addQuantityToItems
josemayer Feb 10, 2024
ad0f40e
Change team colors
josemayer Feb 21, 2024
1f97afc
Merge pull request #9 from recepcaoimeusp/change/teamColors
josemayer Feb 21, 2024
71f9b6e
Fix team colors
josemayer Feb 21, 2024
91b9600
Merge pull request #10 from recepcaoimeusp/change/teamColors
josemayer Feb 21, 2024
947989f
Add stock restriction
josemayer Feb 22, 2024
5fe4275
Merge pull request #11 from recepcaoimeusp/feat/addStockRestriction
josemayer Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .circleci/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion .env

This file was deleted.

6 changes: 6 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_HOST=postgres
POSTGRES_DB=development
ADMIN_USER=
ADMIN_PASSWORD=
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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
52 changes: 33 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
*~
.*.swp
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
.rvmrc
# 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'

.env
# Ignore bundler config.
/.bundle
/vendor/bundle

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

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
/db/development.sqlite3
/public/system/*
/coverage/
/spec/tmp/*
**.orig
rerun.txt
pickle-email-*.html
.project
config/initializers/secret_token.rb
*.sublime-workspace
!/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
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore master key for decrypting credentials and more.
/config/master.key
1 change: 0 additions & 1 deletion .ruby-gemset

This file was deleted.

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.6@kitbixo
ruby-2.7.1
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ruby:2.7.1-alpine

ENV PORT=3000 \
APP_PATH=/usr/src/app \
HOST=0.0.0.0 \
RAILS_ENV=development

WORKDIR ${APP_PATH}

RUN apk add --update \
build-base git bash tzdata libxml2 postgresql-dev gcompat && \
gem install nokogiri -v '1.15.5' && \
gem install net-imap -v '0.3.7' && \
gem install rails

COPY . ./

RUN bundle install

COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]

EXPOSE ${PORT}

CMD rails server -b ${HOST}
# CMD tail -f /dev/null
114 changes: 65 additions & 49 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,65 +1,81 @@
ruby '2.6.6'
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
ruby "2.7.1"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.0.2", ">= 7.0.2.3"

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'
# Use sqlite3 as the database for Active Record
gem 'pg', '~> 0.20.0'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use .env file
gem "dotenv-rails"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use postgresql
gem "pg"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Sass to process CSS
gem "sassc-rails"

# User bootstrap for styles library
gem 'bootstrap-sass'
gem 'jquery-rails'

# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

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

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

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]
gem 'dotenv-rails'
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mingw x64_mingw ]
gem 'rspec-rails', '~> 5.0.0'
gem 'factory_bot_rails'
gem 'pry-rails'
gem 'rspec-rails'
end

group :test do
gem 'shoulda-matchers'
gem 'rspec_junit_formatter'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"

# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
# gem "rack-mini-profiler"

# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
end
Loading