Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c4d55ce
created new rails api
indiakato Dec 2, 2020
25422db
generated Customers controller and model and Videos contoller and model
jwinchan Dec 2, 2020
e2c058e
added videos checked out column to customers and seeded data
jwinchan Dec 2, 2020
ea367b6
added index method and routes for videos
jwinchan Dec 3, 2020
28d0996
added videos show method
jwinchan Dec 3, 2020
61d2a6e
Merge pull request #1 from jwinchan/videos_index
indiakato Dec 3, 2020
5a002b5
customers index action
indiakato Dec 3, 2020
d0e006b
create videos action, video strong params, video validations
indiakato Dec 3, 2020
127d19c
made rentals model and controller
indiakato Dec 3, 2020
6eae938
Merge pull request #2 from jwinchan/customers-index
jwinchan Dec 3, 2020
3ee9f48
Merge pull request #3 from jwinchan/videos-new
jwinchan Dec 3, 2020
33bc3d0
Merge pull request #4 from jwinchan/rentals-checkout
jwinchan Dec 3, 2020
fbc844f
edited controller methods to match smoke tests
jwinchan Dec 3, 2020
6c629f5
Merge pull request #5 from jwinchan/smoke_test_wave1
indiakato Dec 3, 2020
e330c03
created rentals fixtures and tested videos validations and relations
jwinchan Dec 4, 2020
9e9aa41
checkin method
indiakato Dec 4, 2020
7cc731a
Merge pull request #6 from jwinchan/video_model_tests
indiakato Dec 4, 2020
11def78
Update rentals_controller.rb
jwinchan Dec 4, 2020
ab68c32
Update routes.rb
jwinchan Dec 4, 2020
03b1288
Update routes.rb
jwinchan Dec 4, 2020
449b0a1
Merge pull request #7 from jwinchan/rental-checkin
jwinchan Dec 4, 2020
0b54fbe
added due date to checkout
indiakato Dec 4, 2020
7f5f000
created check-in method
jwinchan Dec 4, 2020
502bb55
customer test and rentals controller tests (unfinished)
indiakato Dec 4, 2020
355bf27
small change to rentals controller test
indiakato Dec 4, 2020
9614b10
started video method test
jwinchan Dec 4, 2020
9f0be51
Merge pull request #8 from jwinchan/customer-tests
jwinchan Dec 4, 2020
b375fce
Merge pull request #9 from jwinchan/checkin_rental
indiakato Dec 4, 2020
d3eec21
tested custom video model methods
jwinchan Dec 4, 2020
f3dad65
finished rentals controller tests
indiakato Dec 4, 2020
417f88f
tested rental model relations and validations
jwinchan Dec 4, 2020
4cbc931
Merge pull request #10 from jwinchan/video_model_test
jwinchan Dec 4, 2020
4c91f23
Merge pull request #11 from jwinchan/rental_model_test
jwinchan Dec 4, 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
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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
.byebug_history

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

/.idea
6 changes: 6 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions .idea/video-store-api.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.5
57 changes: 57 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.5'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

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

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.2', require: false

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

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]
end

group :development do
gem 'listen', '~> 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'
end

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

group :development, :test do
gem 'pry-rails'
end

group :development do
gem 'guard'
gem 'guard-minitest'
gem 'debase', '>= 0.2.4.1'
gem 'ruby-debug-ide', '>= 0.7.0'
end

group :test do
gem 'minitest-rails'
gem 'minitest-reporters'
end
Loading