You will implement an on-line web store. We've all browsed countless sites like this: Amazon, BestBuy, HomeDepot, etc., so you've plenty of examples to build from. Your store should feature:
Your project must:
Part 1: Submit a console transcript of your interaction with a MySQL database containing at least 10 items representing the merchandise for your store. You'll need to encode name, a description, and a price. The database should also contain information for at least three clients. You'll need to encode a name, an address, a password, and an encoding of at least one prior purchase. (You should figure out how you will encode prior purchases. Maybe a date, and a list of item IDs and the number of each? Consider how the book's "cars" example encoded the equipment that was in each car.)
Part 2: Submit your project.
If you are taking this course for graduate credit your system must provide an administrator login that allows the administrator to manage the site's inventory.
The inventory should keep track of how many instances of each item remain in inventory via your database. (Initially, you should just provide a small number of each.) When a "buyer" "purchases" items, the item count should be reduced accordingly in the inventory. You must also provide a mechanism for an administrator to log onto a web page that will allow for the inventory of the store to be modified. The administrator must be able to:
Provide an image to be associated with each item. The images should be displayed, where appropriate, to both the administrator and to shoppers. The administrator's page must allow images to be associated with new items.
See the directions on Canvas.
If you are providing images, those should be in a subdirectory named "Images". Any file references (including those to image files) should use relative path names. E.g., "Image/bob.jpg" not "C:/Documents/myDir/Image/bob.jpg".
The file db.sql should be created via the "mysqldump" command, so that I can create your database by executing source 'db'; at the MySQL command line prompt. Here's an example console terminal command for dumping a database named "cars":
mysqldump --databases cars > db.sql
Make sure you use the "--databases" parameter. This will result in db.sql containing CREATE DATABASE and USE instructions.