Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2daab88
Setup new Rails API
Blaine206 Dec 2, 2020
972eb85
created customer and video models
lina5147 Dec 2, 2020
0409140
created model for rental and related rentals to customer and video
lina5147 Dec 2, 2020
d478f7f
created model relationships
lina5147 Dec 2, 2020
dd2b646
created controllers
Blaine206 Dec 2, 2020
d57c22b
added index action for customer
lina5147 Dec 3, 2020
87e1d84
added route for customer#index action
lina5147 Dec 3, 2020
b8aa9c4
added route for index and show action for videos
lina5147 Dec 3, 2020
62f7ee9
created video index controller, & route, tests passing
Blaine206 Dec 3, 2020
40399a8
merge vid & cust routes/indexes fin
Blaine206 Dec 3, 2020
f669191
added render show action for a found video
lina5147 Dec 3, 2020
caf8737
resolved merge conflicts for index and show action for videos
lina5147 Dec 3, 2020
f55b31f
changes video yml and show test release date, changes error handling key
lina5147 Dec 3, 2020
d6ce929
passed smoke test, errors not found is array, removes status ok. inx/…
Blaine206 Dec 3, 2020
c4754ce
video model validations
Blaine206 Dec 3, 2020
b9ad3c1
troubleshooting create test, completed method & route
Blaine206 Dec 3, 2020
ffda167
fixed tests and Date.new/strong_params-wave 1 fin
Blaine206 Dec 3, 2020
b118f93
added tests for video validations
lina5147 Dec 3, 2020
f192174
added extra numeric test cases to video model
lina5147 Dec 3, 2020
7a42b08
added validations for rental model
lina5147 Dec 3, 2020
78de93e
added route for post checkout action
lina5147 Dec 3, 2020
57dbf05
wrote rental create and error tests and checkout controllers
lina5147 Dec 3, 2020
e9772c7
added model methods for the checkout action method, updated tests, up…
lina5147 Dec 3, 2020
226ad89
removed rental validators, were unneccessary
lina5147 Dec 3, 2020
9aed401
updated the respond with 404 for invalid rental test
lina5147 Dec 3, 2020
1e6ac07
removed unnneccessary validation errors in checkout action
lina5147 Dec 3, 2020
37979de
created error handling tests for invalid checkout inventory & vid/cus…
Blaine206 Dec 3, 2020
c35642a
finished decreased avail_invent & proper due date tests
Blaine206 Dec 3, 2020
d3086fe
created checkin route
Blaine206 Dec 3, 2020
f0a93df
completed checkin method and all tests
Blaine206 Dec 3, 2020
47b0d12
Corrected O(n) customer controller
Blaine206 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
Binary file added .DS_Store
Binary file not shown.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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
.idea
# 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
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.

87 changes: 87 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