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

Finished the application #1

Merged
merged 39 commits into from
Jun 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
25975f0
added project file structure
peterrobert Jun 17, 2020
53e60d4
added devise for the user authentication
peterrobert Jun 17, 2020
b5e5d8c
created a static welcome page
peterrobert Jun 17, 2020
3ef1ec8
created the relationship btwn transaction and user
peterrobert Jun 18, 2020
bbb60d1
created the profile page
peterrobert Jun 18, 2020
1878164
added name field to devise
peterrobert Jun 18, 2020
442913f
created the transaction form
peterrobert Jun 18, 2020
e5935cf
added the group model
peterrobert Jun 18, 2020
364eaff
created the relationship btn group and user
peterrobert Jun 18, 2020
f311b65
added routes for for the users
peterrobert Jun 18, 2020
1012427
created the relationship between groups and transactions
peterrobert Jun 19, 2020
4bbf4d5
created the relationship between a group and transaction
peterrobert Jun 20, 2020
af40513
created the profile page
peterrobert Jun 20, 2020
3a11d94
sorted the transactions
peterrobert Jun 20, 2020
fcbc516
added total amount section
peterrobert Jun 21, 2020
694172e
created the summations of amounts
peterrobert Jun 22, 2020
8f89867
added groups controller
peterrobert Jun 22, 2020
de058b5
created the relation btwn group and transaction
peterrobert Jun 22, 2020
e950796
created the form group
peterrobert Jun 22, 2020
4ccdc41
worked on select form
peterrobert Jun 23, 2020
0b7b562
added the delete button
peterrobert Jun 23, 2020
f37d71a
update and edit for groups created
peterrobert Jun 23, 2020
2750591
fixed the design issue transaction page
peterrobert Jun 23, 2020
bcbad93
allowed for saving without group id
peterrobert Jun 23, 2020
e045b4f
fixed the deletion bug
peterrobert Jun 23, 2020
f04a8bc
fixed the redirect bug in transaction
peterrobert Jun 23, 2020
103647e
removed the delete buttons for none members
peterrobert Jun 23, 2020
0abd282
created the all user page
peterrobert Jun 23, 2020
c85d448
fixed user errors
peterrobert Jun 23, 2020
5d72ec4
worked on the validation
peterrobert Jun 23, 2020
f7a8a47
fixed the n+1 issue and installed rspec
peterrobert Jun 24, 2020
bbbbd4e
created the unit tests
peterrobert Jun 24, 2020
a2c27c1
finished app
peterrobert Jun 24, 2020
2b1fd5b
added pg germ for production
peterrobert Jun 24, 2020
3a62379
updated the readme file
peterrobert Jun 24, 2020
8371602
fixed the live link
peterrobert Jun 24, 2020
c225da2
fixed the link
peterrobert Jun 24, 2020
8a68981
fixed rubocop issue
peterrobert Jun 26, 2020
61594f0
fixed all linter issues
peterrobert Jun 26, 2020
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
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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

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

/public/assets
.byebug_history

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

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
62 changes: 62 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
AllCops:
Exclude:
- "db/**/*"
- "bin/*"
- "config/**/*"
- "Guardfile"
- "Rakefile"
- "README.md"
- "node_modules/**/*"

DisplayCopNames: true

Layout/LineLength:
Max: 500
Metrics/MethodLength:
Include:
- "app/controllers/*"
- "app/models/*"
Max: 20
Metrics/AbcSize:
Include:
- "app/controllers/*"
- "app/models/*"
Max: 50
Metrics/ClassLength:
Max: 150
Metrics/BlockLength:
ExcludedMethods: ['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
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false


Layout/HashAlignment:
EnforcedColonStyle: key
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented

Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.5
22 changes: 22 additions & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# add the linters you want stickler to use for this project
linters:
rubocop:
display_cop_names: true
# indicate where is the config file for stylelint
config: './rubocop.yml'

# add the files here you want to be ignored by stylelint
files:
ignore:
- "bin/*"
- "db/*"
- "config/*"
- "Guardfile"
- "Rakefile"
- "README.md"
- "node_modules/**/*"

# PLEASE DO NOT enable auto fixing options
# if you need extra support from you linter - do it in your local env as described in README for this config

# find full documentation here: https://stickler-ci.com/docs
21 changes: 16 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ ruby '2.6.5'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'

# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
Expand All @@ -27,17 +26,25 @@ gem 'jbuilder', '~> 2.7'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false
# Font-awesome gem
gem 'font-awesome-rails'
# Devise log in and sign up
gem 'devise'

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 'byebug', platforms: %i[mri mingw x64_mingw]
gem 'rspec-rails', '~> 4.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.2'
gem 'web-console', '>= 3.3.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'bullet'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
Expand All @@ -50,5 +57,9 @@ group :test do
gem 'webdrivers'
end

group :production do
gem 'pg', '1.2.3'
end

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