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/full app #1

Merged
merged 142 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from 141 commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
0ba3df5
Create the files with 'rails new...' by commnad line
ClaudiaRojasSoto Sep 20, 2023
64512bd
Add the devise gem and all the necesaries gems to make the test
ClaudiaRojasSoto Oct 14, 2023
59b81e9
Upload the file with command line after add the gems
ClaudiaRojasSoto Oct 14, 2023
4d727eb
Add the migrations
ClaudiaRojasSoto Oct 14, 2023
ab8dd95
Upload the schema with the new migrations
ClaudiaRojasSoto Oct 14, 2023
7e91e1b
Add the specs folders with adding the rails-spec gem
ClaudiaRojasSoto Oct 14, 2023
e203107
Add devise for users and craetes all the folders and files with it
ClaudiaRojasSoto Oct 14, 2023
ae0f1ba
Add the empty helper for home
ClaudiaRojasSoto Oct 14, 2023
9c5b1f9
Add the Controller for the home
ClaudiaRojasSoto Oct 14, 2023
a715496
Add the views for the welcome views
ClaudiaRojasSoto Oct 14, 2023
4971afa
Add the views for the authentification
ClaudiaRojasSoto Oct 14, 2023
f779cb1
Creates the user model including the validation for the full name and…
ClaudiaRojasSoto Oct 14, 2023
eca035a
Creates the model for categories with their relations and validations
ClaudiaRojasSoto Oct 14, 2023
690de51
Creates the model for purchases with their relations and validations
ClaudiaRojasSoto Oct 14, 2023
60afe6e
Creates the model for the intermedial table with their relations
ClaudiaRojasSoto Oct 14, 2023
e909e3d
Creates empty the user controller
ClaudiaRojasSoto Oct 14, 2023
9453d31
Creates the controller for categories
ClaudiaRojasSoto Oct 14, 2023
30256d8
Creates the purchases controller
ClaudiaRojasSoto Oct 14, 2023
fc7fba6
Creates the controller for the intermedial table
ClaudiaRojasSoto Oct 14, 2023
c1ae04a
Creates the file for adding styles to the home page
ClaudiaRojasSoto Oct 14, 2023
15187e7
Craetes the file to adding styles to the sign in page
ClaudiaRojasSoto Oct 14, 2023
d0b642a
Add universal styles with variables
ClaudiaRojasSoto Oct 14, 2023
e1adb9a
Creates an empty action only in case
ClaudiaRojasSoto Oct 14, 2023
d726d3b
Add the befor action for devise, the new path for after sign in and t…
ClaudiaRojasSoto Oct 14, 2023
9241672
By terminal using rails new command creates the test, routes and gene…
ClaudiaRojasSoto Oct 14, 2023
1ac2b17
Add a new migration to add user id to categories
ClaudiaRojasSoto Oct 14, 2023
9b7cf85
Add a new migration to change the name of author id to user id
ClaudiaRojasSoto Oct 14, 2023
6cbc571
Add views to categories folder
ClaudiaRojasSoto Oct 14, 2023
d2b398c
Upload the user model with the new table name
ClaudiaRojasSoto Oct 14, 2023
203e95c
Upload the names
ClaudiaRojasSoto Oct 14, 2023
c728c9d
Add actions to categories
ClaudiaRojasSoto Oct 14, 2023
3da11ac
Add design to the start home view and the rigt path to show categories
ClaudiaRojasSoto Oct 14, 2023
3246c0d
Add path and content to the new view of categories
ClaudiaRojasSoto Oct 14, 2023
2fabd82
Add the restaurant image
ClaudiaRojasSoto Oct 16, 2023
8a20803
Add some testing styles to categories on css
ClaudiaRojasSoto Oct 16, 2023
25dfc3d
Add the purchases view
ClaudiaRojasSoto Oct 16, 2023
69e6584
Add the testings styles to new category on css
ClaudiaRojasSoto Oct 16, 2023
e2cd535
Delete the column name from users because added full name
ClaudiaRojasSoto Oct 16, 2023
7e05041
Creates by command line the active storage and on migration
ClaudiaRojasSoto Oct 16, 2023
9562f57
Change the columns names on the middle table purchase categories
ClaudiaRojasSoto Oct 16, 2023
8e7952e
Add font awesome for rails gem
ClaudiaRojasSoto Oct 16, 2023
0d29263
Upload the gem file lock with the new gems
ClaudiaRojasSoto Oct 16, 2023
8cdae70
Upload the entities table with a new name and user id instead author id
ClaudiaRojasSoto Oct 16, 2023
034af66
Upload the schema with the change on the migrations
ClaudiaRojasSoto Oct 16, 2023
8250e94
Change the routes nested on categories by independient routes for cat…
ClaudiaRojasSoto Oct 16, 2023
06daf5b
Delete the alerts from the body
ClaudiaRojasSoto Oct 16, 2023
4bb435e
Change the classes names
ClaudiaRojasSoto Oct 16, 2023
91ebb3a
Change the classes names
ClaudiaRojasSoto Oct 16, 2023
0465013
Add classes names to add design
ClaudiaRojasSoto Oct 16, 2023
559574f
Add classes names to add design into the html file
ClaudiaRojasSoto Oct 16, 2023
f310d67
Add classes names to add design into t
ClaudiaRojasSoto Oct 16, 2023
1139518
Add classes names to add design into t
ClaudiaRojasSoto Oct 16, 2023
77a21ef
Add an structure to start building the page with the functionalities.
ClaudiaRojasSoto Oct 16, 2023
0050057
Add the new validation for full name and for the full name tipe to be…
ClaudiaRojasSoto Oct 16, 2023
df93422
Add the category total empty method to build a function to summ all t…
ClaudiaRojasSoto Oct 16, 2023
b4ac008
Add index and start methods
ClaudiaRojasSoto Oct 16, 2023
e00cb5d
Add all the methods for categories controlles to build new categories…
ClaudiaRojasSoto Oct 16, 2023
20e570c
Add styles to home pages
ClaudiaRojasSoto Oct 16, 2023
83447a0
Add universal styles on the application css styles
ClaudiaRojasSoto Oct 16, 2023
149c4e5
Add styles to the sign in page
ClaudiaRojasSoto Oct 16, 2023
56aad15
Delete the purchase categories controller
ClaudiaRojasSoto Oct 16, 2023
23ead9a
Add and modify the create method testing the routes to come back afte…
ClaudiaRojasSoto Oct 16, 2023
d0a3412
Change te comment to the category total
ClaudiaRojasSoto Oct 16, 2023
b605802
Add a comment
ClaudiaRojasSoto Oct 16, 2023
740743b
Delete the comments
ClaudiaRojasSoto Oct 16, 2023
c415a16
Add the current user to te total purchases sum
ClaudiaRojasSoto Oct 16, 2023
b4f3f66
Delete comments
ClaudiaRojasSoto Oct 16, 2023
40f94b3
Add the fake gem
ClaudiaRojasSoto Oct 16, 2023
aeba1c1
Upload the gem file with the rake gem
ClaudiaRojasSoto Oct 16, 2023
3192f5d
Delete empty spaces
ClaudiaRojasSoto Oct 16, 2023
f655093
Change the user factory adding the right parameters
ClaudiaRojasSoto Oct 16, 2023
d6531d7
Add more test to the model user spec
ClaudiaRojasSoto Oct 16, 2023
94f80b5
Add require fake
ClaudiaRojasSoto Oct 16, 2023
427e122
Creates the category spec empty model
ClaudiaRojasSoto Oct 16, 2023
efadcfa
Creates the emty test for purchase
ClaudiaRojasSoto Oct 16, 2023
17213d7
Creates the factory for categories
ClaudiaRojasSoto Oct 16, 2023
132bba3
Creates the empty test for purchase categories
ClaudiaRojasSoto Oct 16, 2023
6c266df
Delete files with wrong name
ClaudiaRojasSoto Oct 16, 2023
f8351c8
Add the test icon in a new folder inside the spec test
ClaudiaRojasSoto Oct 16, 2023
dcf6b73
Add the config.include ActionDispatch::TestProcess to the rails helper
ClaudiaRojasSoto Oct 16, 2023
a36c960
Add the tests for the purchase model
ClaudiaRojasSoto Oct 16, 2023
def2d4f
Add the test for the purchase categories model
ClaudiaRojasSoto Oct 16, 2023
508a6d3
Add the tests fo
ClaudiaRojasSoto Oct 16, 2023
e80a805
Modify the factory for purchases
ClaudiaRojasSoto Oct 16, 2023
95bda5c
Modify the factory for purchase categpries
ClaudiaRojasSoto Oct 16, 2023
9e329b8
Modify the factory for categories
ClaudiaRojasSoto Oct 16, 2023
76cb5c6
Add the test for home on helper
ClaudiaRojasSoto Oct 16, 2023
4aa52cc
Delete unnecesary methods on the purchase and category controllers
ClaudiaRojasSoto Oct 16, 2023
30c4bb1
add png images to use on categories
ClaudiaRojasSoto Oct 16, 2023
a0bd64c
Add the styles to categories and change and upload the tags on the ht…
ClaudiaRojasSoto Oct 17, 2023
178d1a5
Add the readme file with the description and features of the proyect
ClaudiaRojasSoto Oct 17, 2023
6cca54f
Creates the mit file for the license if the app
ClaudiaRojasSoto Oct 17, 2023
d01dd98
Install font awesome and add some links on the page views
ClaudiaRojasSoto Oct 17, 2023
aab9134
Upload readme file
ClaudiaRojasSoto Oct 17, 2023
188ee27
Add styles to the purchase index basing on the categories index page
ClaudiaRojasSoto Oct 17, 2023
6305375
Modify the test to add the right scenario
ClaudiaRojasSoto Oct 17, 2023
2a7e9bf
Add test for the home index and start
ClaudiaRojasSoto Oct 17, 2023
915678d
Add test for purchases
ClaudiaRojasSoto Oct 17, 2023
d9f82b6
Delete comments from the code
ClaudiaRojasSoto Oct 17, 2023
b68c41b
Creates the user file for feature users
ClaudiaRojasSoto Oct 17, 2023
190b7e4
Modify the categories test feature with the new upload button
ClaudiaRojasSoto Oct 17, 2023
514da30
Upload the purchase test
ClaudiaRojasSoto Oct 17, 2023
bc9b4b0
Add styles and classes to the forms on purchases and categories
ClaudiaRojasSoto Oct 17, 2023
aba7de7
Delete the full design to come back to the last design because the fu…
ClaudiaRojasSoto Oct 17, 2023
05f026e
Upload the integration test for categories and purchases
ClaudiaRojasSoto Oct 17, 2023
35578ae
Add the footer class to fixed the botton at the bottom part
ClaudiaRojasSoto Oct 17, 2023
a7b7aa8
Add styles to the footer class
ClaudiaRojasSoto Oct 17, 2023
0820080
Add the footer class to the button to fix it at the bottom part
ClaudiaRojasSoto Oct 17, 2023
321332e
Add the integration test to te controllers folder
ClaudiaRojasSoto Oct 17, 2023
d462066
Add the integration test to the view new category
ClaudiaRojasSoto Oct 17, 2023
86aca7e
Add integration test to the index categories view
ClaudiaRojasSoto Oct 17, 2023
49c898b
Add test to the home start view
ClaudiaRojasSoto Oct 17, 2023
340b4df
Add test to the home index view
ClaudiaRojasSoto Oct 17, 2023
7171b70
Delete this files to change their folder to controllers instead features
ClaudiaRojasSoto Oct 17, 2023
ab7b658
Add test to the purchase index view
ClaudiaRojasSoto Oct 17, 2023
50a53c1
Fix linter errors
ClaudiaRojasSoto Oct 17, 2023
23b71aa
Fix linter errors
ClaudiaRojasSoto Oct 18, 2023
8d589b7
Add icons at public images folder
ClaudiaRojasSoto Oct 18, 2023
7800c62
Add te property overflow hidden to the body
ClaudiaRojasSoto Oct 18, 2023
0d79d83
Add the path to the arrow
ClaudiaRojasSoto Oct 18, 2023
8707b6a
Add the path to the arrow
ClaudiaRojasSoto Oct 18, 2023
ffbb61a
Add classes to give styles at the page
ClaudiaRojasSoto Oct 18, 2023
64895be
Create the purchase new test
ClaudiaRojasSoto Oct 18, 2023
5b8fd3f
Upload test
ClaudiaRojasSoto Oct 18, 2023
19637ae
Fix n plus one problems and update the testing files with this changes
ClaudiaRojasSoto Oct 18, 2023
62d609b
Fix linter errors
ClaudiaRojasSoto Oct 18, 2023
7be52ad
dd the icons to the purchases from categories
ClaudiaRojasSoto Oct 18, 2023
eb130f9
Modify the categories selector
ClaudiaRojasSoto Oct 18, 2023
27f9c39
Includes puts for depurating
ClaudiaRojasSoto Oct 18, 2023
f7ebb66
Delete the property overflow hidden
ClaudiaRojasSoto Oct 18, 2023
fec7f2a
Upload styles
ClaudiaRojasSoto Oct 18, 2023
55ee6ce
Upload the new purchase test with the changes on the view
ClaudiaRojasSoto Oct 18, 2023
9381506
Ass the video link to the readme
ClaudiaRojasSoto Oct 18, 2023
f274437
Configuration for render and deploy
ClaudiaRojasSoto Oct 18, 2023
781fed2
Add plataform x86 for linux to gem lock
ClaudiaRojasSoto Oct 18, 2023
e29a219
Upload readme file
ClaudiaRojasSoto Oct 18, 2023
63449cc
establishing to true the enviroment
ClaudiaRojasSoto Oct 18, 2023
6f5b460
Puting assets compile on true
ClaudiaRojasSoto Oct 18, 2023
0051900
Testing css only on application css
ClaudiaRojasSoto Oct 18, 2023
0c4935a
Add to layout the css files
ClaudiaRojasSoto Oct 18, 2023
5fd91bf
Solved the styles corrected on the review, deleted the comments on ca…
ClaudiaRojasSoto Oct 19, 2023
0290b6a
Change the position of the category name and transactions
ClaudiaRojasSoto Oct 19, 2023
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
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
44 changes: 44 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Linters

on: pull_request

env:
FORCE_COLOR: 1

jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Setup Rubocop
run: |
gem install --no-document rubocop -v '>= 1.0, < 2.0' # https://docs.rubocop.org/en/stable/installation/
[ -f .rubocop.yml ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.rubocop.yml
- name: Rubocop Report
run: rubocop --color
stylelint:
name: Stylelint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Setup Stylelint
run: |
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/ror/.stylelintrc.json
- name: Stylelint Report
run: npx stylelint "**/*.{css,scss}"
nodechecker:
name: node_modules checker
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check node_modules existence
run: |
if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
/tmp/storage/*
!/tmp/storage/
!/tmp/storage/.keep

/public/assets

# Ignore master key for decrypting credentials and more.
/config/master.key
node_modules/
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
60 changes: 60 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
AllCops:
NewCops: enable
Exclude:
- "db/**/*"
- "bin/*"
- "config/**/*"
- "Guardfile"
- "Rakefile"
- "node_modules/**/*"

DisplayCopNames: true

Layout/LineLength:
Max: 120
Metrics/MethodLength:
Include:
- "app/controllers/*"
- "app/models/*"
Max: 20
Metrics/AbcSize:
Include:
- "app/controllers/*"
- "app/models/*"
Max: 50
Metrics/ClassLength:
Max: 150
Metrics/BlockLength:
AllowedMethods: ['describe']
Max: 30

Style/Documentation:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/EachForSimpleLoop:
Enabled: false
Style/AndOr:
Enabled: false
Style/DefWithParentheses:
Enabled: false
Style/FrozenStringLiteralComment:
EnforcedStyle: never

Layout/HashAlignment:
EnforcedColonStyle: key
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-3.0.0
32 changes: 32 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-scss", "stylelint-csstree-validator"],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"tailwind",
"apply",
"variants",
"responsive",
"screen"
]
}
],
"scss/at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"tailwind",
"apply",
"variants",
"responsive",
"screen"
]
}
],
"csstree/validator": true
},
"ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css"]
}
83 changes: 83 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.0'

gem 'rubocop', '>= 1.0', '< 2.0'

gem 'devise'

gem 'font-awesome-rails'

gem 'faker'

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem 'rails', '~> 7.0.8'

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

# Use postgresql as the database for Active Record
gem 'pg', '~> 1.1'

# 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'

# 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 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 Sass to process CSS
# gem "sassc-rails"

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

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem 'debug', platforms: %i[mri mingw x64_mingw]
# Add RSpec and FactoryBot
gem 'factory_bot_rails'
gem 'rspec-rails', '~> 5.0'
gem 'shoulda-matchers', '~> 4.0'
end

group :development do
# 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

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