SlideShare a Scribd company logo
AMAZON FARMERS FRESH
1 | P a g e
CMPE 273 Group Project
Spring 2016
CMPE273 – Enterprise DistributedSystems
FINAL GROUP REPORT
On
Amazon Market Fresh
Instructor:
Dr. Simon Shim
Submission Date: SubmittedBy:
May 1, 2016 Dhiraj Gurnani
Satyateja Pothuru
AshwiniChellagurki
Vimal Muraleedharan Nair
Vaishampayan Reddy Pathuri
AMAZON FARMERS FRESH
2 | P a g e
CMPE 273 Group Project
INDEX
1. Introduction: stateyour goals, purposeof system. .............................. 3
2. System Design: Describeyour chosen system design. ...........................3
3. ObjectManagement Policy..................................................................8
3.1 Planning and Requirement Analysis. ...............................................8
3.2 Consideration of theFunctional Requirements............................... 8
3.3 Development. ...............................................................................9
3.4 Testing theSystem. ........................................................................9
4. Handling of Heavy WeightResources. .................................................. 9
4.1 Usage of Connection Pooling. ........................................................ 9
4.2 Usage of Rabbit MQ. ..................................................................... 10
4.3 Usage of Redis Caching.................................................................. 11
5. Policy used to decide when to writeto data.......................................... 12
6. Implementation Details: Performance/Mocha Tests............................. 12
7. Use Cases/Work Flow–Screenshots… ................................................. 16
8. Dynamic Pricing Algorithm… ................................................................ 43
AMAZON FARMERS FRESH
3 | P a g e
CMPE 273 Group Project
1. Introduction:
The goal of our system is to develop an application which is similar to AmazonFresh
Farmers Marketto demostrate the useof REST based Web Services in our Middleware
technology , the use of RabbitMQ as a messaging platformfor communication between
front-end channels with backend systems, and implementing the connection pooling
concept to effectively manage our connections and how it effects the overall
performanceof the system and finally to showcaseas to where and which pages to use
the SQL and NOSQL databasein our system. Our Application offers widerangeof
grocery items for sale, as well as a subsetof items for purchaseto the customers.Items
that are ordered are available for home delivery on the sameday or the next day,
depending on the time of the order and the availability of trucks which arealso
managed by our application.Herethe local farmers can sell their fresh producesuch as
lettuce, tomato, potato, oranges,carrots,etc to customersbygetting them approvedby
the admin. The farmers puttheir descriptions of products and introduction to their
farms that includes history, farming methods, video tour,owner profileetc. Customers
can browsemany local farmers and items, and makepurchases.They can check the
order progress in the web and also check the real time locatin of the delivery truck
through googlemaps.
2. SystemDesign:
Block Diagram for AmazonFresh
AMAZON FARMERS FRESH
4 | P a g e
CMPE 273 Group Project
Schema Diagram:
Mongo DB:
AMAZON FARMERS FRESH
5 | P a g e
CMPE 273 Group Project
Sessions (Implementedusing Passport.JS andstoredinMongo)
SystemDesign(Continued….)
Amazon Fresh Client represents the front-end wherecustomers can select various
agricultural items fromdifferent forms. Functionality such as available fresh produce
items, delivery method and description of farmers and forming methods can be
accessed fromthis page. User interface is customized for the role of the logged in user.
If the logged in user is a customer and if the request is made to buy a productthen
server enques this in a request queue with a specific correlation_id. This requestwill be
forther forwarded to service defined for this type of request. Itis here RabbitMQ plays
AMAZON FARMERS FRESH
6 | P a g e
CMPE 273 Group Project
an important role of decoupling the different components to address scalability. After
the requesthas been serviced, the responsewill be enqueued in the RabbitMQ
responsequeue for the predefined correlation_id. Finally, it will be sent back to client
for display. All the session level and configuration information is stored in the Redis
cache. Oncethe user is authenticated, for the subsequentrequests the information
stored in the Redis cache will be retrived for the validation.
In our AmazonFresh Farmers Marketapplication, weare making use of bootstrap,
HTML5 and angularjs for the client side code and Node js for the server sidecode. The
application provides the users with a AmazonFresh Farmers Market likeinterfacewith
the basic functionalities likeallowing the farmer to sell his fresh produceby creating his
accountand by updating his products which arein prior approved by the admin and are
purchased by the customers who can view all the products, ratethemand review them
and are also provided with information about a registered delivery truck and can live
track it while it is out for delivery.Thecustomers arealso provided with a bill at the end
of each order placed.The products are also dynamically priced with their price varying
on the days when they havehigh demand etc. The customer should be logged in while
doing a checkoutof the products , if not he can signup and carry outthe request. The
farmer,customer,admin product, trucks and billing information is stored in Mysqland is
retrieved whenever required whereas the farmer introduction video and all images are
stored in MongoDb for easy management.Wehavemadeuse of connection pooling in
the databaseto effectively manageour connections and to not create a overhead on
the system as wewill be testing our application on huge data. Wehavemade useof
RabbitMq as a messaging platform for high availability and to increase the
performance.
Test Scenarios:
We have also used testing frameworks to test our application namely Jmeter for testing
the performanceof the systemwhen subjected to varying load of the clients and the
other namely mocha testing framework.
Github:
We have used GitHub which is a web-based Git repository to host our Application.
URL: https://github.com/vaisham92/AmazonFreshMock
AMAZON FARMERS FRESH
7 | P a g e
CMPE 273 Group Project
AMAZON FARMERS FRESH
8 | P a g e
CMPE 273 Group Project
3.Object ManagementPolicy
3.1 Planning and Requirement Analysis:
In this stage, we analyzed and performed requirement analysis, as per the project
requirements in the three tiers which are as follows:
a) The client tier: The front-end users namely customers, farmersand theadmin will
interact with our applications and sends responses using theUI interface.
b) The middle tier/middleware: The majority of the processing of the inputs takesplace
in this tier, it performs the sending and receiving of the messages between distributed
systems. Itis atthis most critical point that it needs to integratenew components or to
scaleexisting ones as efficiently as possible.Themodules havebeen implemented using
RabbitMQ which implements the Advanced Message QueuingProtocol.
c) The third tier: This tier consists of database to storedata of the system. Atthis tier,
we also have constraints and relations that define the data. Mostof the modules use
MySQL as the relational databaseand the videos and images are stored using MongoDB
as the NoSQL database to storedata.
3.2 Considerationof the Functional Requirements:
As per the projectrequirement, we implemented different modules namely Farmers,
Customers, Billing, Admin, Billing and Trucks. Each of the modules have an associated
schema which are responsiblefor showing how objectshould be stored in database.
Each objects exhibits their respectivefunctionalities as per the projectrequirements.
3.3 Development:
According to the projectrequirement, we havecreated the UI and have implemented
differentfunctionalities. Additionaly, Wehave also implemented key features likemaps
using Google maps API and live tracking of the trucks by the customer track the exact
location of the truck.Wehaveused connection pool to efftectively manage our
connections on huge load and Rabbit MQ to increasethe sustainability while the load
in high.
AMAZON FARMERS FRESH
9 | P a g e
CMPE 273 Group Project
3.4 Testing the System:
After the development of our application, on the basis of requirement, we haveused
testing frameworks to test our application namely Jmeter for testing the performance
of the system when subjected to varying load of the clients and the other namely
mocha testing framework.Wehavealso drafted the test cases which were checked if all
the requirement functionality is working fine or not.
4. Handling of Heavy WeightResources
We have used the following to efficiently manage the heavy weight resources :
4.1 Usage of ConnectionPooling:
Whenever an application needs an access to databaseit connects to the database.
Hence, it will be disadvantageous if it connects every time a user sends a requestfor a
particular data.so our application makes useof connection pooling wherewe maintain
a pool of connection instances.Herewecan create any number of connection objects
and keep it in a pool so if a requestcomes it will take a instance fromthe pool and
serve. After accessing the data and we no longer want the connection werelease it
back into the pool and it will be reused by some other function.In this way, it makes the
access faster improves the performanceof an application.
AMAZON FARMERS FRESH
10 | P a g e
CMPE 273 Group Project
4.2 Usage of Rabbit MQ
Rabbit MQ is a messagepassing servicewhich uses the AMQP protocol. It serves
request fromclient to server and sends responsefromserver to client. Messaging
enables softwareapplications to connect and scale. We have made separate queues for
handling the data fromdifferent modules viz. admin, truck,farmers,productcustomer,
billing etc. Applications can connect to each other, as components of a larger
application, or to user devices and data. Messaging is asynchronous, decoupling
applications by separating sending and receiving data.Hence by making use of
RabbitMQ in our systemweare making it reliable and highly available.
AMAZON FARMERS FRESH
11 | P a g e
CMPE 273 Group Project
4.3 Usage of RedisCaching:
Redis is a remote data structureserver and is extremely useful for cache management.
Redis can be accessed by all the processes of your applications, possibly running on
severalnodes (something local memory cannot achieve). Redis memory storageis quite
efficient, and done in a separateprocess. If theapplication runs on a platform whose
memory is garbagecollected (node.js, java, etc ...), it allows handling a much bigger
memory cache/store. Redis can also persistthe data on disk if needed. Redis can
replicate its activity with a master/slavemechanismin order to implement high-
availability. Itallows for fine-grained control over eviction though a choice of six
different eviction policies. Redis employs more sophisticated approaches to memory
management and eviction candidate selection. Redis gives us much greater flexibility
regarding the objects we can cache. Redis allows key names and values to be as large as
512MBeach, and they are binary safe. Redis has six data types that enable more
intelligent caching and manipulation of cached data, opening up a world of possibilities
to the application developer.Hence By making use of Redis in our application we are
making it highly available and efficient.
AMAZON FARMERS FRESH
12 | P a g e
CMPE 273 Group Project
5. Policy used to decide when to write todata
In our application we havewriten or haveupdated into our database only after the
processing of our requestis complete so that the data inserted into the database is
correct and notincomplete.
6. IMPLEMENTATION DETAILS
1. Performance TestingUpdates
AMAZON FARMERS FRESH
13 | P a g e
CMPE 273 Group Project
Note: Performed on heaviest call – getBillDetails
ResponseTime
25
20
15
10
5
0
100 200 300 400 500 1000
Number of Concurrent Users
Without Connection Pooling With Connection Pooling
Rabbit MQ + Connection Pool Rabbit MQ + ConnectionPool + Redis
Numberofestimatedtransactions/sec
AMAZON FARMERS FRESH
14 | P a g e
CMPE 273 Group Project
2. Mocha TestCases:
Performanceimprovement VsConcurrency
45%
40%
35%
30%
25%
20%
15%
10%
5%
0%
100 200 300 400 500 1000
Concurrency
Connection Pool ConnectionPool + Rabbit MQ ConnectionPool + Rabbit MQ + RedisCache
PeformanceImprovementin%
AMAZON FARMERS FRESH
15 | P a g e
CMPE 273 Group Project
Source Code for Mocha test cases:
describe('http tests', function(){
it('Location Statistics API', function(done){
http.get('http://localhost:3000/api/admin/trips/locationStats',
function(res) {
})
});
assert.equal(200,res.statusCode);
done();
it('Revenue Statistics API', function(done){
http.get('http://localhost:3000/api/admin/trips/revenueStats',
function(res) {
})
});
assert.equal(200,res.statusCode);
done();
it('Get PassportSession', function(done){
http.get('http://localhost:3000/api/getSessionInfo', function(res) {
assert.equal(200,res.statusCode);
done();
})
});
it('Get Pending Trips', function(done){
http.get('http://localhost:3000/api/admin/trips/getPendingTrips',
function(res) {
})
});
assert.equal(200,res.statusCode);
done();
it('Get Bills', function(done){
http.get('http://localhost:3000/api/admin/trips/getBills', function(res) {
assert.equal(200,res.statusCode);
done();
})
});
AMAZON FARMERS FRESH
16 | P a g e
CMPE 273 Group Project
});
7. Use Cases/UI FlowsScreenshots.
 Welcome Page
 Click Signin
AMAZON FARMERS FRESH
17 | P a g e
CMPE 273 Group Project
 Register User (Customer andfarmer)
 Validating the fields in Sign uppage
AMAZON FARMERS FRESH
18 | P a g e
CMPE 273 Group Project
AMAZON FARMERS FRESH
19 | P a g e
CMPE 273 Group Project
 Password Encryption(AESAlgorithm)
 Now Approvethe farmer through AdminPage.
AMAZON FARMERS FRESH
20 | P a g e
CMPE 273 Group Project
 Enter Admin Details
 Logging in as Admin
AMAZON FARMERS FRESH
21 | P a g e
CMPE 273 Group Project
 Go to Farmer ApprovalPage
 ApprovetheFarmer
AMAZON FARMERS FRESH
22 | P a g e
CMPE 273 Group Project
 Approved andLogout
 Admin Tracking
AMAZON FARMERS FRESH
23 | P a g e
CMPE 273 Group Project
 Now checking the Login Functionality
AMAZON FARMERS FRESH
24 | P a g e
CMPE 273 Group Project
 View the Farmer Welcome Page& click on edit farmerprofile
AMAZON FARMERS FRESH
25 | P a g e
CMPE 273 Group Project
 Updated farmerprofile
 Click new productin homepage and add newproduct(Apple)
AMAZON FARMERS FRESH
26 | P a g e
CMPE 273 Group Project
 The new productcreated
 Logging in as admin
AMAZON FARMERS FRESH
27 | P a g e
CMPE 273 Group Project
 Creating trips
 Checking pending trips
AMAZON FARMERS FRESH
28 | P a g e
CMPE 273 Group Project
 Checking tripstatistics
 Checking Revenuestatistics
AMAZON FARMERS FRESH
29 | P a g e
CMPE 273 Group Project
 Checking all bills placed
 Approving a farmer
AMAZON FARMERS FRESH
30 | P a g e
CMPE 273 Group Project
 Approving a product
 Viewing dynamicpricing
AMAZON FARMERS FRESH
31 | P a g e
CMPE 273 Group Project
 Entering the price with referenceto dynamic price &updating
 Signing in with customer
AMAZON FARMERS FRESH
32 | P a g e
CMPE 273 Group Project
 Entering zipcodes
 Editing Customerprofile
 Click Edit
AMAZON FARMERS FRESH
33 | P a g e
CMPE 273 Group Project
 Home page part-1
AMAZON FARMERS FRESH
34 | P a g e
CMPE 273 Group Project
 Part-2
 Clicking the fruits subcategory
AMAZON FARMERS FRESH
35 | P a g e
CMPE 273 Group Project
 Clicking the apples productcategory
 Clicking the specific apple (Product)
 Searching a product
AMAZON FARMERS FRESH
36 | P a g e
CMPE 273 Group Project
 FarmerProducts
AMAZON FARMERS FRESH
37 | P a g e
CMPE 273 Group Project
 ProductsInformationPagewith ratingsand review
AMAZON FARMERS FRESH
38 | P a g e
CMPE 273 Group Project
 Inserting Rating (1 Star, 2 Star,3 Star, 4 Star,5 Star)
AMAZON FARMERS FRESH
39 | P a g e
CMPE 273 Group Project
AMAZON FARMERS FRESH
40 | P a g e
CMPE 273 Group Project
 Adding Reviews andratings
AMAZON FARMERS FRESH
41 | P a g e
CMPE 273 Group Project
 Showing averageratings
AMAZON FARMERS FRESH
42 | P a g e
CMPE 273 Group Project
 CartInformation
 Getting Farmer Details on the Cartpage.
AMAZON FARMERS FRESH
43 | P a g e
CMPE 273 Group Project
 Looking at the reviews in the productpage
AMAZON FARMERS FRESH
44 | P a g e
CMPE 273 Group Project
 Cart page after adding producttocart
 Clicki proceed to checkout and filling shippingdetails
AMAZON FARMERS FRESH
45 | P a g e
CMPE 273 Group Project
 Clicking continue and going to payment infopage
 Click pay now and going to confirmationpage
AMAZON FARMERS FRESH
46 | P a g e
CMPE 273 Group Project
 Clicking profilebutton
 Profileview
AMAZON FARMERS FRESH
47 | P a g e
CMPE 273 Group Project
 Clicking all placed orders
 View placed orders
AMAZON FARMERS FRESH
48 | P a g e
CMPE 273 Group Project
 Signing out
 Back to login page
AMAZON FARMERS FRESH
49 | P a g e
CMPE 273 Group Project
8. Dynamic PricingAlgorithm.
 Compute the averagepriceof the same productfor all quantity in the Database.
 Compute the averagepriceof the same productsold by the AmazonFresh.
 Then find the averageof step1 and step2 in the databasewhich will shown as the
dynamic price based on demand supplymodel.
 If no similar products are available, DPA will show the result asnull.
 The admin has an option to enter the price fromthe DFAAlgorithm.
ImplementationExample:
select sum(quantity) assumOfQuantity from Productswhere category_id =1 and
subcategory_id =1;
select quantity,price from Productswhere category_id =1 and subcategory_id =1 order
by price desc;
select price from Productswhere category_id =1 and subcategory_id =1;
select max(price) from Productswhere category_id =1 and subcategory_id = 1;
UI Implementationand How toapply the same:
AMAZON FARMERS FRESH
50 | P a g e
CMPE 273 Group Project
AMAZON FARMERS FRESH
51 | P a g e
CMPE 273 Group Project

More Related Content

What's hot

81 Funny and Serious Banking Quotes
81 Funny and Serious Banking Quotes81 Funny and Serious Banking Quotes
81 Funny and Serious Banking Quotes
Samuel Albert
 
saffola oats Marico
 saffola oats Marico saffola oats Marico
saffola oats Marico
Rohan Pant
 
Case study on amazon.com
Case study on amazon.comCase study on amazon.com
Case study on amazon.com
Kaushik Panta
 
Amazon supply chain management
Amazon supply chain managementAmazon supply chain management
Amazon supply chain management
anu mukesh
 
Amazon Presentation - Consumer Behavior
Amazon Presentation - Consumer Behavior Amazon Presentation - Consumer Behavior
Amazon Presentation - Consumer Behavior
Ana Barrera
 
Amazon Wholesale the Easy Way and Automating Any Business
Amazon Wholesale the Easy Way and Automating Any BusinessAmazon Wholesale the Easy Way and Automating Any Business
Amazon Wholesale the Easy Way and Automating Any Business
Dillon Carter
 
United colors of Benetton case study on communications.
United colors of Benetton case study on communications.United colors of Benetton case study on communications.
United colors of Benetton case study on communications.
Nivedita Godbole
 
Project on lead generation and sales
Project on lead generation and salesProject on lead generation and sales
Project on lead generation and sales
Sushant Kohli
 
Case study of webvan - The extravagant rise and fall of Webvan
Case study of webvan - The extravagant rise and fall of WebvanCase study of webvan - The extravagant rise and fall of Webvan
Case study of webvan - The extravagant rise and fall of Webvan
Rutvik Bapat
 
Fitness Star - An Android app marketing plan
Fitness Star - An Android app marketing planFitness Star - An Android app marketing plan
Fitness Star - An Android app marketing plan
Rohan Singh
 
Amazon Case Study 2021
Amazon Case Study 2021Amazon Case Study 2021
Amazon Case Study 2021
DevAdnani
 
Amazon
Amazon Amazon
Amazon
Hamro PPT
 
Relince digital
Relince digitalRelince digital
Relince digital
Dwip Dasgupta
 
Inventory Management Amazon
Inventory Management AmazonInventory Management Amazon
Inventory Management Amazon
Ashutosh Kumar Jha
 
To Understand the Eco-System in Digital Media Marketing.
To Understand the Eco-System in Digital Media Marketing.To Understand the Eco-System in Digital Media Marketing.
To Understand the Eco-System in Digital Media Marketing.
Saurabh Giratkar
 
Amazon India ppt
Amazon India pptAmazon India ppt
Amazon India ppt
Ikram Vora
 
Wholesale
WholesaleWholesale
Wholesale
JenCabrera4
 
Rentomojo SEM strategy
Rentomojo SEM strategyRentomojo SEM strategy
Rentomojo SEM strategy
Michelle Varghese
 
Little orange pitch deck
Little orange pitch deckLittle orange pitch deck
Little orange pitch deck
Rugved Inamdar
 

What's hot (20)

81 Funny and Serious Banking Quotes
81 Funny and Serious Banking Quotes81 Funny and Serious Banking Quotes
81 Funny and Serious Banking Quotes
 
saffola oats Marico
 saffola oats Marico saffola oats Marico
saffola oats Marico
 
Case study on amazon.com
Case study on amazon.comCase study on amazon.com
Case study on amazon.com
 
Amazon supply chain management
Amazon supply chain managementAmazon supply chain management
Amazon supply chain management
 
Amazon Presentation - Consumer Behavior
Amazon Presentation - Consumer Behavior Amazon Presentation - Consumer Behavior
Amazon Presentation - Consumer Behavior
 
Amazon Wholesale the Easy Way and Automating Any Business
Amazon Wholesale the Easy Way and Automating Any BusinessAmazon Wholesale the Easy Way and Automating Any Business
Amazon Wholesale the Easy Way and Automating Any Business
 
United colors of Benetton case study on communications.
United colors of Benetton case study on communications.United colors of Benetton case study on communications.
United colors of Benetton case study on communications.
 
Project on lead generation and sales
Project on lead generation and salesProject on lead generation and sales
Project on lead generation and sales
 
Case study of webvan - The extravagant rise and fall of Webvan
Case study of webvan - The extravagant rise and fall of WebvanCase study of webvan - The extravagant rise and fall of Webvan
Case study of webvan - The extravagant rise and fall of Webvan
 
Fitness Star - An Android app marketing plan
Fitness Star - An Android app marketing planFitness Star - An Android app marketing plan
Fitness Star - An Android app marketing plan
 
Amazon Case Study 2021
Amazon Case Study 2021Amazon Case Study 2021
Amazon Case Study 2021
 
Amazon
Amazon Amazon
Amazon
 
Relince digital
Relince digitalRelince digital
Relince digital
 
Inventory Management Amazon
Inventory Management AmazonInventory Management Amazon
Inventory Management Amazon
 
To Understand the Eco-System in Digital Media Marketing.
To Understand the Eco-System in Digital Media Marketing.To Understand the Eco-System in Digital Media Marketing.
To Understand the Eco-System in Digital Media Marketing.
 
Amazon India ppt
Amazon India pptAmazon India ppt
Amazon India ppt
 
Wholesale
WholesaleWholesale
Wholesale
 
Rentomojo SEM strategy
Rentomojo SEM strategyRentomojo SEM strategy
Rentomojo SEM strategy
 
Թեմա 4․2
Թեմա 4․2Թեմա 4․2
Թեմա 4․2
 
Little orange pitch deck
Little orange pitch deckLittle orange pitch deck
Little orange pitch deck
 

Viewers also liked

Amazon Fresh - Mock Marketing Plan
Amazon Fresh - Mock Marketing PlanAmazon Fresh - Mock Marketing Plan
Amazon Fresh - Mock Marketing Plan
Helena Lavieri
 
Marketing Decision Models Project - AMAZONFRESH
Marketing Decision Models Project - AMAZONFRESHMarketing Decision Models Project - AMAZONFRESH
Marketing Decision Models Project - AMAZONFRESH
Chu (Esperanza) Wang
 
AmazonFresh
AmazonFreshAmazonFresh
AmazonFresh
Molly Helverson
 
Amazon Fresh - Mock Financials
Amazon Fresh - Mock FinancialsAmazon Fresh - Mock Financials
Amazon Fresh - Mock Financials
Helena Lavieri
 
Amazon - Brand Management
Amazon - Brand ManagementAmazon - Brand Management
Amazon - Brand Management
Het Mavani
 
Case study: Amazon improvement of customer service
Case study: Amazon improvement of customer serviceCase study: Amazon improvement of customer service
Case study: Amazon improvement of customer service
Sulaman Muhammad
 
Satya prakash_project report on Flipkart
Satya prakash_project report on FlipkartSatya prakash_project report on Flipkart
Satya prakash_project report on Flipkart
Satya Prakash Tripathi
 
Amazon.com Strategic Analysis
Amazon.com Strategic AnalysisAmazon.com Strategic Analysis
Amazon.com Strategic Analysis
Max Jallifier
 
product and brand management project on smartphone & Amazon
product and brand management  project on smartphone & Amazonproduct and brand management  project on smartphone & Amazon
product and brand management project on smartphone & Amazon
Tanmoy Roy
 
Marketing Strategies of Flipkart
Marketing Strategies of Flipkart Marketing Strategies of Flipkart
Marketing Strategies of Flipkart
Vicky Singh
 
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
Dan John
 
Project Report on Digital Media Marketing
Project Report on Digital Media Marketing Project Report on Digital Media Marketing
Project Report on Digital Media Marketing
Asams VK
 
Presentation on Amazon
Presentation on AmazonPresentation on Amazon
Presentation on Amazon
Avinandan Karmakar
 
Project report on- "A study of digital marketing services"
Project report on- "A study of digital marketing services" Project report on- "A study of digital marketing services"
Project report on- "A study of digital marketing services"
MarketerBoard
 
Amazon ppt
Amazon pptAmazon ppt
Amazon ppt
aftabssm
 
Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013
Fabernovel
 
Mba 758 database management system
Mba 758 database management systemMba 758 database management system
Mba 758 database management system
Vmvinothkumar Kandiyar
 
Transportation Industry Roundtable
Transportation Industry RoundtableTransportation Industry Roundtable
Transportation Industry Roundtable
New York Public Transit Association
 
project management in marketing
project management in marketing project management in marketing
project management in marketing
nairobian
 

Viewers also liked (19)

Amazon Fresh - Mock Marketing Plan
Amazon Fresh - Mock Marketing PlanAmazon Fresh - Mock Marketing Plan
Amazon Fresh - Mock Marketing Plan
 
Marketing Decision Models Project - AMAZONFRESH
Marketing Decision Models Project - AMAZONFRESHMarketing Decision Models Project - AMAZONFRESH
Marketing Decision Models Project - AMAZONFRESH
 
AmazonFresh
AmazonFreshAmazonFresh
AmazonFresh
 
Amazon Fresh - Mock Financials
Amazon Fresh - Mock FinancialsAmazon Fresh - Mock Financials
Amazon Fresh - Mock Financials
 
Amazon - Brand Management
Amazon - Brand ManagementAmazon - Brand Management
Amazon - Brand Management
 
Case study: Amazon improvement of customer service
Case study: Amazon improvement of customer serviceCase study: Amazon improvement of customer service
Case study: Amazon improvement of customer service
 
Satya prakash_project report on Flipkart
Satya prakash_project report on FlipkartSatya prakash_project report on Flipkart
Satya prakash_project report on Flipkart
 
Amazon.com Strategic Analysis
Amazon.com Strategic AnalysisAmazon.com Strategic Analysis
Amazon.com Strategic Analysis
 
product and brand management project on smartphone & Amazon
product and brand management  project on smartphone & Amazonproduct and brand management  project on smartphone & Amazon
product and brand management project on smartphone & Amazon
 
Marketing Strategies of Flipkart
Marketing Strategies of Flipkart Marketing Strategies of Flipkart
Marketing Strategies of Flipkart
 
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
Project Report And Market Survey of Baskin Robbins- Cbse class 12 Entrepreneu...
 
Project Report on Digital Media Marketing
Project Report on Digital Media Marketing Project Report on Digital Media Marketing
Project Report on Digital Media Marketing
 
Presentation on Amazon
Presentation on AmazonPresentation on Amazon
Presentation on Amazon
 
Project report on- "A study of digital marketing services"
Project report on- "A study of digital marketing services" Project report on- "A study of digital marketing services"
Project report on- "A study of digital marketing services"
 
Amazon ppt
Amazon pptAmazon ppt
Amazon ppt
 
Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013Amazon.com: the Hidden Empire - Update 2013
Amazon.com: the Hidden Empire - Update 2013
 
Mba 758 database management system
Mba 758 database management systemMba 758 database management system
Mba 758 database management system
 
Transportation Industry Roundtable
Transportation Industry RoundtableTransportation Industry Roundtable
Transportation Industry Roundtable
 
project management in marketing
project management in marketing project management in marketing
project management in marketing
 

Similar to Amazon-Fresh-Project-Report (1)

Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1
MEGHA JAIN
 
Supermart
SupermartSupermart
Supermart
Bryan Zakalik
 
Finger Gesture Based Rating System
Finger Gesture Based Rating SystemFinger Gesture Based Rating System
Finger Gesture Based Rating System
IRJET Journal
 
UBIMarket
UBIMarketUBIMarket
UBIMarket
Mikel Berdufi
 
2012 magic-quadrant-for-application-performance-monitoring
2012 magic-quadrant-for-application-performance-monitoring2012 magic-quadrant-for-application-performance-monitoring
2012 magic-quadrant-for-application-performance-monitoring
vinooothm
 
IRJET-Recommendation in E-Commerce using Collaborative Filtering
IRJET-Recommendation in E-Commerce using Collaborative FilteringIRJET-Recommendation in E-Commerce using Collaborative Filtering
IRJET-Recommendation in E-Commerce using Collaborative Filtering
IRJET Journal
 
Srs for ims dhavisoft
Srs for ims dhavisoftSrs for ims dhavisoft
Srs for ims dhavisoft
anuruddhsharma1
 
A Project to Automate Inventory Management in a Fast Food, Cas.docx
A Project to Automate Inventory Management in a Fast Food, Cas.docxA Project to Automate Inventory Management in a Fast Food, Cas.docx
A Project to Automate Inventory Management in a Fast Food, Cas.docx
ransayo
 
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For FarmersFarmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
IRJET Journal
 
End User Monitoring with AppDynamics - AppSphere16
End User Monitoring with AppDynamics - AppSphere16End User Monitoring with AppDynamics - AppSphere16
End User Monitoring with AppDynamics - AppSphere16
AppDynamics
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
FINAL PROJECT REPORT1
FINAL PROJECT REPORT1FINAL PROJECT REPORT1
FINAL PROJECT REPORT1
waqar younas
 
Real estate management system
Real estate management systemReal estate management system
Real estate management system
SouvikSarkar75
 
Group - 9 Final Deliverable
Group - 9 Final DeliverableGroup - 9 Final Deliverable
Group - 9 Final Deliverable
Linan(Annabella) Zhao
 
MIS330FinalReport
MIS330FinalReportMIS330FinalReport
MIS330FinalReport
James Phillips
 
Sunlight documentation
Sunlight documentationSunlight documentation
Sunlight documentation
Shehzad Yaqoob
 
Yandex AppMetrica
Yandex AppMetricaYandex AppMetrica
Yandex AppMetrica
Yandex.Türkiye
 
Agile project related points
Agile project related pointsAgile project related points
Agile project related points
Gaurav Kumar
 
Wow! you built this with joomla!
Wow! you built this with joomla!Wow! you built this with joomla!
Wow! you built this with joomla!
Parth Lawate
 
Stock Management System
Stock Management SystemStock Management System
Stock Management System
IRJET Journal
 

Similar to Amazon-Fresh-Project-Report (1) (20)

Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1Project Report_Food Bazar_Ver1
Project Report_Food Bazar_Ver1
 
Supermart
SupermartSupermart
Supermart
 
Finger Gesture Based Rating System
Finger Gesture Based Rating SystemFinger Gesture Based Rating System
Finger Gesture Based Rating System
 
UBIMarket
UBIMarketUBIMarket
UBIMarket
 
2012 magic-quadrant-for-application-performance-monitoring
2012 magic-quadrant-for-application-performance-monitoring2012 magic-quadrant-for-application-performance-monitoring
2012 magic-quadrant-for-application-performance-monitoring
 
IRJET-Recommendation in E-Commerce using Collaborative Filtering
IRJET-Recommendation in E-Commerce using Collaborative FilteringIRJET-Recommendation in E-Commerce using Collaborative Filtering
IRJET-Recommendation in E-Commerce using Collaborative Filtering
 
Srs for ims dhavisoft
Srs for ims dhavisoftSrs for ims dhavisoft
Srs for ims dhavisoft
 
A Project to Automate Inventory Management in a Fast Food, Cas.docx
A Project to Automate Inventory Management in a Fast Food, Cas.docxA Project to Automate Inventory Management in a Fast Food, Cas.docx
A Project to Automate Inventory Management in a Fast Food, Cas.docx
 
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For FarmersFarmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
Farmer’s Plaza: A Cloud-Enabled Mobile and Web Based Application For Farmers
 
End User Monitoring with AppDynamics - AppSphere16
End User Monitoring with AppDynamics - AppSphere16End User Monitoring with AppDynamics - AppSphere16
End User Monitoring with AppDynamics - AppSphere16
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
FINAL PROJECT REPORT1
FINAL PROJECT REPORT1FINAL PROJECT REPORT1
FINAL PROJECT REPORT1
 
Real estate management system
Real estate management systemReal estate management system
Real estate management system
 
Group - 9 Final Deliverable
Group - 9 Final DeliverableGroup - 9 Final Deliverable
Group - 9 Final Deliverable
 
MIS330FinalReport
MIS330FinalReportMIS330FinalReport
MIS330FinalReport
 
Sunlight documentation
Sunlight documentationSunlight documentation
Sunlight documentation
 
Yandex AppMetrica
Yandex AppMetricaYandex AppMetrica
Yandex AppMetrica
 
Agile project related points
Agile project related pointsAgile project related points
Agile project related points
 
Wow! you built this with joomla!
Wow! you built this with joomla!Wow! you built this with joomla!
Wow! you built this with joomla!
 
Stock Management System
Stock Management SystemStock Management System
Stock Management System
 

Amazon-Fresh-Project-Report (1)

  • 1. AMAZON FARMERS FRESH 1 | P a g e CMPE 273 Group Project Spring 2016 CMPE273 – Enterprise DistributedSystems FINAL GROUP REPORT On Amazon Market Fresh Instructor: Dr. Simon Shim Submission Date: SubmittedBy: May 1, 2016 Dhiraj Gurnani Satyateja Pothuru AshwiniChellagurki Vimal Muraleedharan Nair Vaishampayan Reddy Pathuri
  • 2. AMAZON FARMERS FRESH 2 | P a g e CMPE 273 Group Project INDEX 1. Introduction: stateyour goals, purposeof system. .............................. 3 2. System Design: Describeyour chosen system design. ...........................3 3. ObjectManagement Policy..................................................................8 3.1 Planning and Requirement Analysis. ...............................................8 3.2 Consideration of theFunctional Requirements............................... 8 3.3 Development. ...............................................................................9 3.4 Testing theSystem. ........................................................................9 4. Handling of Heavy WeightResources. .................................................. 9 4.1 Usage of Connection Pooling. ........................................................ 9 4.2 Usage of Rabbit MQ. ..................................................................... 10 4.3 Usage of Redis Caching.................................................................. 11 5. Policy used to decide when to writeto data.......................................... 12 6. Implementation Details: Performance/Mocha Tests............................. 12 7. Use Cases/Work Flow–Screenshots… ................................................. 16 8. Dynamic Pricing Algorithm… ................................................................ 43
  • 3. AMAZON FARMERS FRESH 3 | P a g e CMPE 273 Group Project 1. Introduction: The goal of our system is to develop an application which is similar to AmazonFresh Farmers Marketto demostrate the useof REST based Web Services in our Middleware technology , the use of RabbitMQ as a messaging platformfor communication between front-end channels with backend systems, and implementing the connection pooling concept to effectively manage our connections and how it effects the overall performanceof the system and finally to showcaseas to where and which pages to use the SQL and NOSQL databasein our system. Our Application offers widerangeof grocery items for sale, as well as a subsetof items for purchaseto the customers.Items that are ordered are available for home delivery on the sameday or the next day, depending on the time of the order and the availability of trucks which arealso managed by our application.Herethe local farmers can sell their fresh producesuch as lettuce, tomato, potato, oranges,carrots,etc to customersbygetting them approvedby the admin. The farmers puttheir descriptions of products and introduction to their farms that includes history, farming methods, video tour,owner profileetc. Customers can browsemany local farmers and items, and makepurchases.They can check the order progress in the web and also check the real time locatin of the delivery truck through googlemaps. 2. SystemDesign: Block Diagram for AmazonFresh
  • 4. AMAZON FARMERS FRESH 4 | P a g e CMPE 273 Group Project Schema Diagram: Mongo DB:
  • 5. AMAZON FARMERS FRESH 5 | P a g e CMPE 273 Group Project Sessions (Implementedusing Passport.JS andstoredinMongo) SystemDesign(Continued….) Amazon Fresh Client represents the front-end wherecustomers can select various agricultural items fromdifferent forms. Functionality such as available fresh produce items, delivery method and description of farmers and forming methods can be accessed fromthis page. User interface is customized for the role of the logged in user. If the logged in user is a customer and if the request is made to buy a productthen server enques this in a request queue with a specific correlation_id. This requestwill be forther forwarded to service defined for this type of request. Itis here RabbitMQ plays
  • 6. AMAZON FARMERS FRESH 6 | P a g e CMPE 273 Group Project an important role of decoupling the different components to address scalability. After the requesthas been serviced, the responsewill be enqueued in the RabbitMQ responsequeue for the predefined correlation_id. Finally, it will be sent back to client for display. All the session level and configuration information is stored in the Redis cache. Oncethe user is authenticated, for the subsequentrequests the information stored in the Redis cache will be retrived for the validation. In our AmazonFresh Farmers Marketapplication, weare making use of bootstrap, HTML5 and angularjs for the client side code and Node js for the server sidecode. The application provides the users with a AmazonFresh Farmers Market likeinterfacewith the basic functionalities likeallowing the farmer to sell his fresh produceby creating his accountand by updating his products which arein prior approved by the admin and are purchased by the customers who can view all the products, ratethemand review them and are also provided with information about a registered delivery truck and can live track it while it is out for delivery.Thecustomers arealso provided with a bill at the end of each order placed.The products are also dynamically priced with their price varying on the days when they havehigh demand etc. The customer should be logged in while doing a checkoutof the products , if not he can signup and carry outthe request. The farmer,customer,admin product, trucks and billing information is stored in Mysqland is retrieved whenever required whereas the farmer introduction video and all images are stored in MongoDb for easy management.Wehavemadeuse of connection pooling in the databaseto effectively manageour connections and to not create a overhead on the system as wewill be testing our application on huge data. Wehavemade useof RabbitMq as a messaging platform for high availability and to increase the performance. Test Scenarios: We have also used testing frameworks to test our application namely Jmeter for testing the performanceof the systemwhen subjected to varying load of the clients and the other namely mocha testing framework. Github: We have used GitHub which is a web-based Git repository to host our Application. URL: https://github.com/vaisham92/AmazonFreshMock
  • 7. AMAZON FARMERS FRESH 7 | P a g e CMPE 273 Group Project
  • 8. AMAZON FARMERS FRESH 8 | P a g e CMPE 273 Group Project 3.Object ManagementPolicy 3.1 Planning and Requirement Analysis: In this stage, we analyzed and performed requirement analysis, as per the project requirements in the three tiers which are as follows: a) The client tier: The front-end users namely customers, farmersand theadmin will interact with our applications and sends responses using theUI interface. b) The middle tier/middleware: The majority of the processing of the inputs takesplace in this tier, it performs the sending and receiving of the messages between distributed systems. Itis atthis most critical point that it needs to integratenew components or to scaleexisting ones as efficiently as possible.Themodules havebeen implemented using RabbitMQ which implements the Advanced Message QueuingProtocol. c) The third tier: This tier consists of database to storedata of the system. Atthis tier, we also have constraints and relations that define the data. Mostof the modules use MySQL as the relational databaseand the videos and images are stored using MongoDB as the NoSQL database to storedata. 3.2 Considerationof the Functional Requirements: As per the projectrequirement, we implemented different modules namely Farmers, Customers, Billing, Admin, Billing and Trucks. Each of the modules have an associated schema which are responsiblefor showing how objectshould be stored in database. Each objects exhibits their respectivefunctionalities as per the projectrequirements. 3.3 Development: According to the projectrequirement, we havecreated the UI and have implemented differentfunctionalities. Additionaly, Wehave also implemented key features likemaps using Google maps API and live tracking of the trucks by the customer track the exact location of the truck.Wehaveused connection pool to efftectively manage our connections on huge load and Rabbit MQ to increasethe sustainability while the load in high.
  • 9. AMAZON FARMERS FRESH 9 | P a g e CMPE 273 Group Project 3.4 Testing the System: After the development of our application, on the basis of requirement, we haveused testing frameworks to test our application namely Jmeter for testing the performance of the system when subjected to varying load of the clients and the other namely mocha testing framework.Wehavealso drafted the test cases which were checked if all the requirement functionality is working fine or not. 4. Handling of Heavy WeightResources We have used the following to efficiently manage the heavy weight resources : 4.1 Usage of ConnectionPooling: Whenever an application needs an access to databaseit connects to the database. Hence, it will be disadvantageous if it connects every time a user sends a requestfor a particular data.so our application makes useof connection pooling wherewe maintain a pool of connection instances.Herewecan create any number of connection objects and keep it in a pool so if a requestcomes it will take a instance fromthe pool and serve. After accessing the data and we no longer want the connection werelease it back into the pool and it will be reused by some other function.In this way, it makes the access faster improves the performanceof an application.
  • 10. AMAZON FARMERS FRESH 10 | P a g e CMPE 273 Group Project 4.2 Usage of Rabbit MQ Rabbit MQ is a messagepassing servicewhich uses the AMQP protocol. It serves request fromclient to server and sends responsefromserver to client. Messaging enables softwareapplications to connect and scale. We have made separate queues for handling the data fromdifferent modules viz. admin, truck,farmers,productcustomer, billing etc. Applications can connect to each other, as components of a larger application, or to user devices and data. Messaging is asynchronous, decoupling applications by separating sending and receiving data.Hence by making use of RabbitMQ in our systemweare making it reliable and highly available.
  • 11. AMAZON FARMERS FRESH 11 | P a g e CMPE 273 Group Project 4.3 Usage of RedisCaching: Redis is a remote data structureserver and is extremely useful for cache management. Redis can be accessed by all the processes of your applications, possibly running on severalnodes (something local memory cannot achieve). Redis memory storageis quite efficient, and done in a separateprocess. If theapplication runs on a platform whose memory is garbagecollected (node.js, java, etc ...), it allows handling a much bigger memory cache/store. Redis can also persistthe data on disk if needed. Redis can replicate its activity with a master/slavemechanismin order to implement high- availability. Itallows for fine-grained control over eviction though a choice of six different eviction policies. Redis employs more sophisticated approaches to memory management and eviction candidate selection. Redis gives us much greater flexibility regarding the objects we can cache. Redis allows key names and values to be as large as 512MBeach, and they are binary safe. Redis has six data types that enable more intelligent caching and manipulation of cached data, opening up a world of possibilities to the application developer.Hence By making use of Redis in our application we are making it highly available and efficient.
  • 12. AMAZON FARMERS FRESH 12 | P a g e CMPE 273 Group Project 5. Policy used to decide when to write todata In our application we havewriten or haveupdated into our database only after the processing of our requestis complete so that the data inserted into the database is correct and notincomplete. 6. IMPLEMENTATION DETAILS 1. Performance TestingUpdates
  • 13. AMAZON FARMERS FRESH 13 | P a g e CMPE 273 Group Project Note: Performed on heaviest call – getBillDetails ResponseTime 25 20 15 10 5 0 100 200 300 400 500 1000 Number of Concurrent Users Without Connection Pooling With Connection Pooling Rabbit MQ + Connection Pool Rabbit MQ + ConnectionPool + Redis Numberofestimatedtransactions/sec
  • 14. AMAZON FARMERS FRESH 14 | P a g e CMPE 273 Group Project 2. Mocha TestCases: Performanceimprovement VsConcurrency 45% 40% 35% 30% 25% 20% 15% 10% 5% 0% 100 200 300 400 500 1000 Concurrency Connection Pool ConnectionPool + Rabbit MQ ConnectionPool + Rabbit MQ + RedisCache PeformanceImprovementin%
  • 15. AMAZON FARMERS FRESH 15 | P a g e CMPE 273 Group Project Source Code for Mocha test cases: describe('http tests', function(){ it('Location Statistics API', function(done){ http.get('http://localhost:3000/api/admin/trips/locationStats', function(res) { }) }); assert.equal(200,res.statusCode); done(); it('Revenue Statistics API', function(done){ http.get('http://localhost:3000/api/admin/trips/revenueStats', function(res) { }) }); assert.equal(200,res.statusCode); done(); it('Get PassportSession', function(done){ http.get('http://localhost:3000/api/getSessionInfo', function(res) { assert.equal(200,res.statusCode); done(); }) }); it('Get Pending Trips', function(done){ http.get('http://localhost:3000/api/admin/trips/getPendingTrips', function(res) { }) }); assert.equal(200,res.statusCode); done(); it('Get Bills', function(done){ http.get('http://localhost:3000/api/admin/trips/getBills', function(res) { assert.equal(200,res.statusCode); done(); }) });
  • 16. AMAZON FARMERS FRESH 16 | P a g e CMPE 273 Group Project }); 7. Use Cases/UI FlowsScreenshots.  Welcome Page  Click Signin
  • 17. AMAZON FARMERS FRESH 17 | P a g e CMPE 273 Group Project  Register User (Customer andfarmer)  Validating the fields in Sign uppage
  • 18. AMAZON FARMERS FRESH 18 | P a g e CMPE 273 Group Project
  • 19. AMAZON FARMERS FRESH 19 | P a g e CMPE 273 Group Project  Password Encryption(AESAlgorithm)  Now Approvethe farmer through AdminPage.
  • 20. AMAZON FARMERS FRESH 20 | P a g e CMPE 273 Group Project  Enter Admin Details  Logging in as Admin
  • 21. AMAZON FARMERS FRESH 21 | P a g e CMPE 273 Group Project  Go to Farmer ApprovalPage  ApprovetheFarmer
  • 22. AMAZON FARMERS FRESH 22 | P a g e CMPE 273 Group Project  Approved andLogout  Admin Tracking
  • 23. AMAZON FARMERS FRESH 23 | P a g e CMPE 273 Group Project  Now checking the Login Functionality
  • 24. AMAZON FARMERS FRESH 24 | P a g e CMPE 273 Group Project  View the Farmer Welcome Page& click on edit farmerprofile
  • 25. AMAZON FARMERS FRESH 25 | P a g e CMPE 273 Group Project  Updated farmerprofile  Click new productin homepage and add newproduct(Apple)
  • 26. AMAZON FARMERS FRESH 26 | P a g e CMPE 273 Group Project  The new productcreated  Logging in as admin
  • 27. AMAZON FARMERS FRESH 27 | P a g e CMPE 273 Group Project  Creating trips  Checking pending trips
  • 28. AMAZON FARMERS FRESH 28 | P a g e CMPE 273 Group Project  Checking tripstatistics  Checking Revenuestatistics
  • 29. AMAZON FARMERS FRESH 29 | P a g e CMPE 273 Group Project  Checking all bills placed  Approving a farmer
  • 30. AMAZON FARMERS FRESH 30 | P a g e CMPE 273 Group Project  Approving a product  Viewing dynamicpricing
  • 31. AMAZON FARMERS FRESH 31 | P a g e CMPE 273 Group Project  Entering the price with referenceto dynamic price &updating  Signing in with customer
  • 32. AMAZON FARMERS FRESH 32 | P a g e CMPE 273 Group Project  Entering zipcodes  Editing Customerprofile  Click Edit
  • 33. AMAZON FARMERS FRESH 33 | P a g e CMPE 273 Group Project  Home page part-1
  • 34. AMAZON FARMERS FRESH 34 | P a g e CMPE 273 Group Project  Part-2  Clicking the fruits subcategory
  • 35. AMAZON FARMERS FRESH 35 | P a g e CMPE 273 Group Project  Clicking the apples productcategory  Clicking the specific apple (Product)  Searching a product
  • 36. AMAZON FARMERS FRESH 36 | P a g e CMPE 273 Group Project  FarmerProducts
  • 37. AMAZON FARMERS FRESH 37 | P a g e CMPE 273 Group Project  ProductsInformationPagewith ratingsand review
  • 38. AMAZON FARMERS FRESH 38 | P a g e CMPE 273 Group Project  Inserting Rating (1 Star, 2 Star,3 Star, 4 Star,5 Star)
  • 39. AMAZON FARMERS FRESH 39 | P a g e CMPE 273 Group Project
  • 40. AMAZON FARMERS FRESH 40 | P a g e CMPE 273 Group Project  Adding Reviews andratings
  • 41. AMAZON FARMERS FRESH 41 | P a g e CMPE 273 Group Project  Showing averageratings
  • 42. AMAZON FARMERS FRESH 42 | P a g e CMPE 273 Group Project  CartInformation  Getting Farmer Details on the Cartpage.
  • 43. AMAZON FARMERS FRESH 43 | P a g e CMPE 273 Group Project  Looking at the reviews in the productpage
  • 44. AMAZON FARMERS FRESH 44 | P a g e CMPE 273 Group Project  Cart page after adding producttocart  Clicki proceed to checkout and filling shippingdetails
  • 45. AMAZON FARMERS FRESH 45 | P a g e CMPE 273 Group Project  Clicking continue and going to payment infopage  Click pay now and going to confirmationpage
  • 46. AMAZON FARMERS FRESH 46 | P a g e CMPE 273 Group Project  Clicking profilebutton  Profileview
  • 47. AMAZON FARMERS FRESH 47 | P a g e CMPE 273 Group Project  Clicking all placed orders  View placed orders
  • 48. AMAZON FARMERS FRESH 48 | P a g e CMPE 273 Group Project  Signing out  Back to login page
  • 49. AMAZON FARMERS FRESH 49 | P a g e CMPE 273 Group Project 8. Dynamic PricingAlgorithm.  Compute the averagepriceof the same productfor all quantity in the Database.  Compute the averagepriceof the same productsold by the AmazonFresh.  Then find the averageof step1 and step2 in the databasewhich will shown as the dynamic price based on demand supplymodel.  If no similar products are available, DPA will show the result asnull.  The admin has an option to enter the price fromthe DFAAlgorithm. ImplementationExample: select sum(quantity) assumOfQuantity from Productswhere category_id =1 and subcategory_id =1; select quantity,price from Productswhere category_id =1 and subcategory_id =1 order by price desc; select price from Productswhere category_id =1 and subcategory_id =1; select max(price) from Productswhere category_id =1 and subcategory_id = 1; UI Implementationand How toapply the same:
  • 50. AMAZON FARMERS FRESH 50 | P a g e CMPE 273 Group Project
  • 51. AMAZON FARMERS FRESH 51 | P a g e CMPE 273 Group Project