Skip to content

Alasdair321/Rental_Shop_Ruby_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arthur's Seat Ski Hire

An equipment rental management system

Includes:

  • Manage Customer Details
  • Manage Equipment Stocks
  • Create leases
  • Store records of all previous leases

Summary:

The website is has been programmed using Ruby and PSQL for databasing. The web application framework, Sinatra, has been employed to run the website in the browser.

Screenshots:

home page

Customer Details

Equipment Details 1 Equipment Details 2

Create lease 1 Create lease 2

Current and Ended Leases

Features

  • The database is protected against SQL injection by using prepared statements.
  • For each requested lease the stock availability is checked within the proposed date range. The process counts the number of items leased for each proposed date and focuses on the maximum number leased over the range, if this is equal to the total stock, then that item cannot be leased in this date range.
  • On an ended lease, all of the data is copied to a 'records' table, such that the dependencies on the Equipment and Customer SQL tables are severed and the information can be changed without altering the recorded lease details.

About

Rental shop stock management system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published