** DO NOT DISTRIBUTE OR PUBLICLY POST SOLUTIONS TO THESE LABS. MAKE ALL FORKS OF THIS REPOSITORY WITH SOLUTION CODE PRIVATE. PLEASE REFER TO THE STUDENT CODE OF CONDUCT AND ETHICAL EXPECTATIONS FOR COLLEGE OF INFORMATION TECHNOLOGY STUDENTS FOR SPECIFICS. **
Welcome to Java Frameworks! This is an opportunity for students to implement user interfaces and learn to leverage existing frameworks, assets, and content for object-oriented programming. FOR SPECIFIC TASK INSTRUCTIONS AND REQUIREMENTS FOR THIS ASSESSMENT, PLEASE REFER TO THE COURSE PAGE.
C. Customize the HTML user interface for your customer’s application. The user interface should include the shop name, the product names, and the names of the parts. Note: Do not remove any elements that were included in the screen. You may add any additional elements you would like or any images, colors, and styles, although it is not required. Line 19 change it to Timeless Auto Line 21 change it to Ride Essential Parts Line 53 change it to Iconic Wheel Products
D. Add an “About” page to the application to describe your chosen customer’s company to web viewers and include navigation to and from the “About” page and the main screen. Line 20 in main screen html created about us created about html created about controller
E. Add a sample inventory appropriate for your chosen store to the application. You should have five parts and five products in your sample inventory and should not overwrite existing data in the database. I added 5 parts and 5 products in BootStrap Data
Note: Make sure the sample inventory is added only when both the part and product lists are empty. When adding the sample inventory appropriate for the store, the inventory is stored in a set so duplicate items cannot be added to your products. When duplicate items are added, make a “multi-pack” part.
F. Add a “Buy Now” button to your product list. Your “Buy Now” button must meet each of the following parameters: • The “Buy Now” button must be next to the buttons that update and delete products. • The button should decrement the inventory of that product by one. It should not affect the inventory of any of the associated parts. • Display a message that indicates the success or failure of a purchase. Line 87 added a buy now link in main screen html In AddProduct Controller line 176 created GetMapping for buy now also code decrement product created unsuccessful buy now html and confirmation buy now html
G. Modify the parts to track maximum and minimum inventory by doing the following: • Add additional fields to the part entity for maximum and minimum inventory. • Modify the sample inventory to include the maximum and minimum fields. • Add to the In housePartForm and OutsourcedPartForm forms additional text inputs for the inventory so the user can set the maximum and minimum values. • Rename the file the persistent storage is saved to. • Modify the code to enforce that the inventory is between or at the minimum and maximum value. Line 47-48 added a min_inv and max_inv in main screen html Line 39-40 added Min and Max Inventory column name in main screen html I added additional fields max_inv and min_inv in part domain, added getters and setters I modified the sample inventory parts .setMax_inv(50) and .setMin_inv(1) in bootstrap data rename application properties to MascardoDatabasev_# added In housePartForm and OutsourcedPartForm of Min Inventory and Max Inventory created MinMaxValidator and ValidMinMax in validators Added @ValidMinMax line 23 in Part Domain
H. Add validation for between or at the maximum and minimum fields. The validation must include the following: • Display error messages for low inventory when adding and updating parts if the inventory is less than the minimum number of parts. • Display error messages for low inventory when adding and updating products lowers the part inventory below the minimum. • Display error messages when adding and updating parts if the inventory is greater than the maximum. Line 45 I added -p.getMin_inv() to the equation in EnufParts Validator
I. Add at least two unit tests for the maximum and minimum fields to the PartTest class in the test package. In PartTest lines 159-175 I added the maximum and minimum fields in the test package
J. Remove the class files for any unused validators in order to clean your code. I remove the DeletePart validator and valid DeletePart to clean my code
K. Demonstrate professional communication in the content and presentation of your submission.