ECE6102 course assignment
Click to View Music-Repository
Click to View Transactions-Mapreduce-Analysis
Music repository is a place where user can save and query songs' info. There are total three basic genres: hip-hop, classical and jazz. Maintain a shopping cart and allow customers to add songs they browse or search for to the shopping cart. Design Mapreduce algorithm to analyze purchasing data generated from music shopping app using Google mapreduce opensource module.
- Error handling for inputs: Check for empty inputs and display an appropriate error message when an input field is left empty.
- Case sensitivity: Genre names and search strings should not be case sensitive.
- Returning to main page: There should be a simple way for users to return to the main page of your repository without having to use the back button.
- Failed searches: If a search string is entered that does not match any artists in the data store entries, an appropriate message should be displayed.
- The browse and search displays must also include a mechanism for users to add any displayed song to their shopping cart.
- There must be a way for users to display the items currently in the shopping cart along with the total cost of the items, and a way to delete items from the cart.
- The shopping cart key should be unique to a specific user so that multiple users can access the service simultaneously and maintain their own shopping carts.
- There should be a purchase feature, which allows users to buy the items in the cart. This should clear out the shopping cart and display a message thanking the user for their purchase. This action should also write entries to the data store to record the songs purchased and their prices, the date and time, and the user ID of the purchaser.
A purchase includes date and time, user ID, song title, artist name, album title, genre, song running time, and price. Design Mapreduce code to implement the following analyses
- Count the number of songs sold for each song that has been purchased at least once.
- Calculate the total dollar amount of sales for each song.
- Count the number of songs sold for each artist that has had at least one.
- Calculate the total dollar amount of sales for each artist.
- For each song that was purchased at least once, find the other song that was purchased most often at the same time and count how many times the two songs were purchased together.
- [App Engine]
- [Python]
- [NDB Datastore API]
- [Users API]
- [webapp2]
- [jinja2]
- [Twitter Bootstrap]