Learning Redis by Unknown
Author:Unknown
Language: eng
Format: mobi, epub
Publisher: Packt Publishing
Simple e-commerce – a Redis backed e-commerce site
This sample e-commerce site, like other e-commerce sites, has products which the registered user can browse, purchase, and so on. The website also recommends products based on the users' browsing and purchasing habits. In parallel, the website gives real time statistics of the activities happening in the website and provides you with capabilities to do real-time and soft-real-time analytics. So, let's get cracking and build this website, and like in any design, let's divide the requirement into commands, which are listed as follows:
Session and catalogue management: The following commands are offered as service:Register user: Command name is register; this command will register the user to the system.
See my data: Command name is mydata; this command will allow the user to see his/her data.
Edit my data: Command name is editmydata; this command will allow the user to edit his data.
Login user: Command name is login; this command will log in the user and generates a session-ID for the user to communicate with the server.
Relogin user: Command name is relogin; this command will again log the user but the session-ID will remain the same. All the session or profile data of the user will also remain the same.
Logout user: Command name is logout; this command will log out the user and kill his session or profile data.
Add to cart: Command name is add2cart; this command will add the item to the shopping cart.
See my shopping cart: Command name is showmycart; this command will show the items in the shopping cart.
Edit my shopping cart: Command name is editcart; this command will edit user preference in the shopping cart.
Buy products: Command name is buy; this command will buy the items in the shopping cart of the user. For the current application, we will not take you to some merchant's site but instead we will generate a sample receipt for you. The idea is to have analysis, so when somebody buys the product we give credit points for that product which will help us for our recommendation service. The credit point for buying is 10.
Commission product: Command name is commission; this command will commission the product and create its profile in the system.
Display product: Command name is display; this command will display the product.
Browse products: Command name is browse; this command will log the product the user is currently browsing. The idea is that when somebody browses the product, we give credit points for the product which will help us for our recommendation service. The credit point for browsing is 1.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Aircraft Design of WWII: A Sketchbook by Lockheed Aircraft Corporation(32130)
The Great Music City by Andrea Baker(30767)
Call Me by Your Name by André Aciman(19888)
The Art of Boudoir Photography: How to Create Stunning Photographs of Women by Christa Meola(18398)
The Secret History by Donna Tartt(18130)
Shoot Sexy by Ryan Armbrust(17550)
Plagued by Fire by Paul Hendrickson(17099)
Portrait Mastery in Black & White: Learn the Signature Style of a Legendary Photographer by Tim Kelly(16864)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(16791)
Photographically Speaking: A Deeper Look at Creating Stronger Images (Eva Spring's Library) by David duChemin(16490)
Ready Player One by Cline Ernest(13955)
Pimp by Iceberg Slim(13768)
Bombshells: Glamour Girls of a Lifetime by Sullivan Steve(13677)
The Goal (Off-Campus #4) by Elle Kennedy(13190)
Art Nude Photography Explained: How to Photograph and Understand Great Art Nude Images by Simon Walden(12847)
Kathy Andrews Collection by Kathy Andrews(11312)
The Priory of the Orange Tree by Samantha Shannon(8582)
Thirteen Reasons Why by Jay Asher(8436)
The remains of the day by Kazuo Ishiguro(8374)
