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

Sprint 1 #1

Merged
merged 56 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
3a664e3
Remove default README
DanteAlonsoHT Jul 17, 2021
62b1b20
Add new gems for testing, optimization and media
DanteAlonsoHT Jul 21, 2021
8b6eeba
Devise was installed
DanteAlonsoHT Jul 21, 2021
064d22c
Generate devise views
DanteAlonsoHT Jul 21, 2021
a6b1de4
Create home#index controller
DanteAlonsoHT Jul 21, 2021
ac11adf
Modify index.html.erb view
DanteAlonsoHT Jul 21, 2021
ec38515
Create User scaffold instead User with devise
DanteAlonsoHT Jul 21, 2021
ff63ef2
Add validations for name in Users table
DanteAlonsoHT Jul 21, 2021
46e31ea
Create controller for sessions in the app
DanteAlonsoHT Jul 21, 2021
3729be7
Add logic for sessions_controller
DanteAlonsoHT Jul 21, 2021
d9be7f6
Remove devise files and add features in sessions#new view
DanteAlonsoHT Jul 21, 2021
deeb71e
Modify routes accoding to Sessions routes
DanteAlonsoHT Jul 21, 2021
c376f56
Add logic to have current_user instance variable
DanteAlonsoHT Jul 21, 2021
afd23ce
Create investment table
DanteAlonsoHT Jul 22, 2021
ade306f
Create groups table
DanteAlonsoHT Jul 23, 2021
11686e9
Make references between Investments and Groups
DanteAlonsoHT Jul 23, 2021
19f0d7b
Active storage installed to add images
DanteAlonsoHT Jul 23, 2021
1f60e9b
Remove error in investments column
DanteAlonsoHT Jul 23, 2021
afed1bf
Create spec files for views, helpers, models and controllers
DanteAlonsoHT Jul 23, 2021
9b119dd
Create stylesheets for groups and investments views
DanteAlonsoHT Jul 23, 2021
99b722e
Create helpers for groups and investments
DanteAlonsoHT Jul 23, 2021
fb39c48
Add group model with realtionship features
DanteAlonsoHT Jul 23, 2021
c10f6e9
Add relationships for user and investment models
DanteAlonsoHT Jul 23, 2021
69f68bb
Add migration showed in the schema.rb
DanteAlonsoHT Jul 23, 2021
179297c
Add all routes necessary
DanteAlonsoHT Jul 23, 2021
c8fb903
Add groups controller with features
DanteAlonsoHT Jul 23, 2021
f36920d
Add investment controller with features
DanteAlonsoHT Jul 23, 2021
952bf30
Add all views for groups with all features
DanteAlonsoHT Jul 23, 2021
c44057a
Add all views for investments with all features
DanteAlonsoHT Jul 23, 2021
ef16ad2
Fix some issues for views
DanteAlonsoHT Jul 23, 2021
6ca9e68
Setup bootstrap in the application
DanteAlonsoHT Jul 23, 2021
85b05fe
Add navbar as a partial
DanteAlonsoHT Jul 23, 2021
2d6746d
Add link for external transactions
DanteAlonsoHT Jul 23, 2021
9bce165
Fix gems used for this project
DanteAlonsoHT Jul 23, 2021
476eb8f
Add attached for images in models
DanteAlonsoHT Jul 23, 2021
e053b62
Add deaful photo for users and groups
DanteAlonsoHT Jul 23, 2021
4408e58
Add new view for external transactions
DanteAlonsoHT Jul 23, 2021
084cd17
Add file_field to add images and icons for users and groups
DanteAlonsoHT Jul 23, 2021
e260a11
Add new features for groups controller
DanteAlonsoHT Jul 23, 2021
0d4c56f
Add features for unique method in home controller
DanteAlonsoHT Jul 23, 2021
cdff90f
Improve investments controller
DanteAlonsoHT Jul 23, 2021
ba275ee
Add new link to redirect when logout
DanteAlonsoHT Jul 23, 2021
403b285
Make available to add avatar image for users
DanteAlonsoHT Jul 23, 2021
23edacc
Add containers for edits in views
DanteAlonsoHT Jul 23, 2021
cf29717
Add new links, images and containers for home and group#index views
DanteAlonsoHT Jul 23, 2021
2aa760a
Fix groups to select in investment form
DanteAlonsoHT Jul 23, 2021
06e3a8f
Fix navbar in the app
DanteAlonsoHT Jul 23, 2021
f6ae6d4
Change base layout
DanteAlonsoHT Jul 23, 2021
1c13116
Add containers and fix links
DanteAlonsoHT Jul 23, 2021
2c4cf7b
Add links, containers and dates
DanteAlonsoHT Jul 23, 2021
00561dc
Add links, logic and new features
DanteAlonsoHT Jul 23, 2021
789cea3
Add styles for all app
DanteAlonsoHT Jul 23, 2021
4105a14
Set up linters for ruby on rails
DanteAlonsoHT Jul 23, 2021
bb2958a
Add linters for styles
DanteAlonsoHT Jul 23, 2021
7a8bee8
Fix rubocop and stylint liters
DanteAlonsoHT Jul 23, 2021
b1ef382
Create github-actions-demo.yml
DanteAlonsoHT Jul 23, 2021
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
17 changes: 17 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: GitHub Actions Demo
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
62 changes: 62 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
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:
IgnoredMethods: ['describe']
Max: 60

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
Layout/EndOfLine:
Enabled: False
20 changes: 20 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": [
"stylelint-config-standard"
],
"plugins": [
"stylelint-scss",
"stylelint-csstree-validator"
],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"csstree/validator": true
},
"ignoreFiles": [
"build/**",
"dist/**",
"**/reset*.css",
"**/bootstrap*.css"
]
}
14 changes: 11 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,30 @@ gem 'jbuilder', '~> 2.7'
# gem 'bcrypt', '~> 3.1.7'

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

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false
# Include images using gravaar
gem 'gravatar_image_tag', '~> 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 'byebug', platforms: %i[mri mingw x64_mingw]
# Rspec to test rails applications
gem 'rspec-rails', '~> 3.4', '>= 3.4.2'
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'

gem 'listen', '~> 3.3'
# 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'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

group :test do
Expand All @@ -50,4 +58,4 @@ group :test do
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]
37 changes: 37 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,30 @@ GEM
childprocess (3.0.0)
concurrent-ruby (1.1.9)
crass (1.0.6)
diff-lcs (1.4.4)
erubi (1.10.0)
ffi (1.15.3-x64-mingw32)
globalid (0.4.2)
activesupport (>= 4.2.0)
gravatar_image_tag (1.2.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
image_processing (1.12.1)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
jbuilder (2.11.2)
activesupport (>= 5.0.0)
listen (3.6.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.10.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
method_source (1.0.0)
mini_magick (4.11.0)
mini_mime (1.1.0)
minitest (5.14.4)
msgpack (1.4.2)
Expand Down Expand Up @@ -137,7 +146,29 @@ GEM
rake (>= 0.13)
thor (~> 1.0)
rake (13.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.1.1)
rspec-core (3.9.3)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (3.9.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.4)
ruby-vips (2.1.2)
ffi (~> 1.12)
rubyzip (2.3.2)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
Expand All @@ -153,6 +184,7 @@ GEM
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
semantic_range (3.0.0)
spring (2.1.1)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -198,12 +230,17 @@ DEPENDENCIES
bootsnap (>= 1.4.4)
byebug
capybara (>= 3.26)
gravatar_image_tag (~> 1.2)
image_processing (~> 1.2)
jbuilder (~> 2.7)
listen (~> 3.3)
puma (~> 5.0)
rack-mini-profiler (~> 2.0)
rails (~> 6.1.3, >= 6.1.3.2)
rspec-rails (~> 3.4, >= 3.4.2)
sass-rails (>= 6)
selenium-webdriver
spring
sqlite3 (~> 1.4)
turbolinks (~> 5)
tzinfo-data
Expand Down
25 changes: 1 addition & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1 @@
# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...
# Group by Transactions Software
Binary file added app/assets/images/default_profile.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 73 additions & 14 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,74 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/

body {
background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
background-repeat: no-repeat;
min-height: 100vh;
}

a:hover {
opacity: 50%;
background: transparent;
}

.navbar {
border-radius: 16px;
background-color: rgba(255, 255, 255, 0.34);
}

.alert,
.notice {
font-size: 16px;
padding: 1rem;
border-radius: 36px;
color: #fff;
font-weight: 500;
letter-spacing: 1px;
}

.alert {
background-image: linear-gradient(to top, #c571f5b4 0%, #fa71ccad 100%);
}

.notice {
background-image: linear-gradient(to top, #0ba361b4 0%, #3cba92a3 100%);
}

.container-show {
background-image: linear-gradient(120deg, #89f6fe9c 0%, #66a6ffb6 100%);
padding: 3rem 2rem;
border-radius: 36px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-width: 300px;
max-width: 600px;
margin: 0 auto;
}

.container-show p {
font-size: 22px;
margin: 1.5rem 0;
}

.container-show a,
.container-show a:visited {
margin: 1rem;
text-decoration: none;
color: royalblue;
}
Loading