Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature#01 initial setup #3

Merged
merged 21 commits into from
May 13, 2021
Merged

Feature#01 initial setup #3

merged 21 commits into from
May 13, 2021

Conversation

SpidySamurai
Copy link
Contributor

@SpidySamurai SpidySamurai commented May 7, 2021

Description

  • What?: Init rails project. Setup database engine with postgres and install gems and dependencies for the project.
  • Why?: In order to develop with the same environment configurations. For more background, see ticket Feature Feature#0 git templates #1

Non-functional requirements

Configures rubocop , rubycritic, sandi_meter as code review tools for quality

Setup tests

Configures rspec-rails for testing.

Setup frontend

Configures bootstrap 5 as frontend framework.

Preconditions

 bundle install & yarn install 
 rails server and bin/webpack-dev-server
  • Database creation
rails  db:create
rails db:migrate

Execute metrics code and sandi_meter

rake metrics_code

marianoalarcon and others added 14 commits May 7, 2021 12:43
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
…ments

Co-authored-by: SpidySamurai <javierchiortiz@gmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Co-authored-by: JorgeDDW <hi@jorgedev.com>
Co-authored-by: marianoalarcon <mariano.alarcon@hotmail.com>
Co-authored-by: facundotoconas <facutoconas88@gmail.com>
Arkamis
Arkamis previously approved these changes May 10, 2021
Copy link

@Arkamis Arkamis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

anxhe
anxhe previously approved these changes May 10, 2021
Copy link

@anxhe anxhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are ready to begin

Gemfile Outdated
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: %i[mri mingw x64_mingw]
gem "rspec-rails", "~> 5.0"
gem "sqlite3", "~> 1.4"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps can you remove this gem , I noticed you are not using it in config/database.yml

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right, thanks! in principle we thought to use sqlite3 for development and testing, in this way we keep postgres only for production, but then we choose to keep everything in postgres

gem 'rake', '~> 13.0'
gem 'rubocop-rails', '~> 2.10'
gem 'rubycritic', '~> 4.6'
gem 'rubycritic-small-badge', '~> 0.2.1'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that you forgot to configure this gem? or are you going to do it later in other issue?

@marianoalarcon marianoalarcon modified the milestone: Sprint 1 May 11, 2021
@marianoalarcon marianoalarcon added this to In progress in Denuncia ciudadana via automation May 11, 2021
@marianoalarcon marianoalarcon linked an issue May 11, 2021 that may be closed by this pull request
4 tasks
@marianoalarcon marianoalarcon moved this from In progress to Review in progress in Denuncia ciudadana May 11, 2021
marianoalarcon and others added 3 commits May 11, 2021 12:31
Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
@SpidySamurai SpidySamurai moved this from Review in progress to In progress in Denuncia ciudadana May 11, 2021
Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
@marianoalarcon marianoalarcon dismissed stale reviews from anxhe and Arkamis via 46b417d May 11, 2021 16:39
Denuncia ciudadana automation moved this from In progress to Review in progress May 11, 2021
marianoalarcon and others added 2 commits May 12, 2021 11:29
Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
…pec_helper

Co-authored-by: SpidySamurai <SpidySamurai@users.noreply.github.com>
Co-authored-by: facundotoconas <facundotoconas@users.noreply.github.com>
Gemfile Outdated
@@ -52,9 +52,13 @@ group :development do
gem 'rubocop-rails', '~> 2.10'
gem 'rubycritic', '~> 4.6'
gem 'rubycritic-small-badge', '~> 0.2.1'
gem "hamlit", "~> 2.15"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice !

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes ! This gem improves the dev !

Copy link

@anxhe anxhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I see you included several things, it seems that my previous review was gone

--format console
)
task.paths = FileList["#{dir}/**/*.rb"]
RubyCritic::RakeTask.new("_rubycritic:#{dir}") do |task|
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice , I am glad that you liked this approach 😉

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we liked the order you keep when making the project settings. We find it efficient and effective

])
end
SimpleCov.minimum_coverage(65)
SimpleCovSmallBadge::Formatter.class_eval do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This monkey patch is very useful without this gem fails , can see context here: MarcGrimme/simplecov-small-badge#15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh, thank u very much, knowing these kind of stuff helps a lot!

@SpidySamurai SpidySamurai merged commit 81ce202 into master May 13, 2021
Denuncia ciudadana automation moved this from Review in progress to Done May 13, 2021
@marianoalarcon marianoalarcon removed the review required review required label May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Feature#01_Initial-setup
6 participants