SlideShare a Scribd company logo
1 of 4
KAYAK PROTOTYPE
Developed By:
TEAM 17
VishweshKumar Patel
Sunny Udhani
Varun Shah
Rutvik Pensionwar
Pritam Meher
USER TRACE DIAGRAM ALGORITHM/PSEUDO CODE
LOGGING ACTIVITY OF USER:
UP ON SIGN IN/ SIGN UP:
1. STORE CURRENT TIME AS PREVIOUSTIME IN 'REQ.SESSION.PREVIOUSTIME'.
2. STORE CURRENT PAGE AS LASTPAGE IN 'REQ.SESSION.LASTPAGE'.
3. INITIALIZE 'REQ.SESSION.FLAG' TO 'TRUE' AND 'REQ.SESSION.PAGETIME' AND 'REQ.SESSION.PAGES' AS EMPTY ARRAYS.
UP ON API CALL FOR ANY PAGE LOADING ACTIVITY:
1. IF REQ.SESSION.FLAG IS TRUE :
I. SET 'REQ.SESSION.FLAG' TO 'FALSE'.
2. ELSE :
I. GET CURRENT TIME USING GETTIME(), STORE IT IN 'TEMP1' VARIABLE.
II. GET 'REQ.SESSION.PREVIOUSTIME' FROM SESSION VARIABLE, STORE IT IN 'TEMP2' VARIABLE.
III. SUBTRACT 'TEMP2' FROM 'TEMP1', STORE IT IN 'TIME' VARIABLE. // THIS GIVES TIME SPENT BY USER IN 'LASTPAGE'.
IV. SET 'REQ.SESSION.PREVIOUSTIME' TO 'TEMP1'.
V. PUSH 'TIME' IN 'REQ.SESSION.PAGETIME’. // ARRAY TO TRACE PAGES IN SEQUENTIAL ORDER, EXPLORED BY USER.
VI. PUSH 'REQ.SESSION.LASTPAGE' IN 'REQ.SESSION.PAGES’. // ARRAY TO TRACE TIME SPENT ON A PAGE IN SEQUENTIAL ORDER, EXPLORED BY USER.
VII. SET 'REQ.SESSION.LASTPAGE' TO CURRENT PAGE FOR WHICH THIS API CALL IS MADE.
UP ON API CALL FOR SIGN OUT:
1. GET CURRENT TIME USING GETTIME(), STORE IT IN 'TEMP1' VARIABLE.
2. GET 'REQ.SESSION.PREVIOUSTIME' FROM SESSION VARIABLE, STORE IT IN 'TEMP2' VARIABLE.
3. SUBTRACT 'TEMP2' FROM 'TEMP1', STORE IT IN 'TIME' VARIABLE. // THAT GIVES TIME SPENT BY USER IN 'LASTPAGE'.
4. PUSH 'TIME' IN 'REQ.SESSION.PAGETIME’. // ARRAY TO TRACE PAGES IN SEQUENTIAL ORDER, EXPLORED BY USER.
5. PUSH 'REQ.SESSION.LASTPAGE' IN 'REQ.SESSION.PAGES’. // ARRAY TO TRACE TIME SPENT ON A PAGE IN SEQUENTIAL ORDER, EXPLORED BY USER.
6. PUSH 'REQ.SESSION.PAGETIME' AND 'REQ.SESSION.PAGES' TO LOG FILE.
7. STORE RESPECTIVE TIME SPENT ON RESPECTIVE PAGE IN SEPARATE DOCUMENT IN MONGODB COLLECTION. // FOR TRACING LATEST ACTIVITY OF USER.
PARSING LOGS:
UP ON API CALL FOR DISPLAYING ADMIN DASHBOARD:
1. GET LOG FILE.
2. PARSE IT AND PLACE RESPECTIVE TIME ON RESPECTIVE PAGE ATTRIBUTE IN DOCUMENT IN MONGODB COLLECTION.
3. AGGREGATE AND FIND AVERAGE TIME SPENT ON EACH PAGE BY A PARTICULAR USER USING USERID.
4. GET LATEST ACTIVITY FROM SEPARATE DOCUMENT IN MONGODB COLLECTION FOR USER TRACE TREE.

More Related Content

Recently uploaded

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Kayak Prototype using MERN Stack

  • 1. KAYAK PROTOTYPE Developed By: TEAM 17 VishweshKumar Patel Sunny Udhani Varun Shah Rutvik Pensionwar Pritam Meher
  • 2.
  • 3.
  • 4. USER TRACE DIAGRAM ALGORITHM/PSEUDO CODE LOGGING ACTIVITY OF USER: UP ON SIGN IN/ SIGN UP: 1. STORE CURRENT TIME AS PREVIOUSTIME IN 'REQ.SESSION.PREVIOUSTIME'. 2. STORE CURRENT PAGE AS LASTPAGE IN 'REQ.SESSION.LASTPAGE'. 3. INITIALIZE 'REQ.SESSION.FLAG' TO 'TRUE' AND 'REQ.SESSION.PAGETIME' AND 'REQ.SESSION.PAGES' AS EMPTY ARRAYS. UP ON API CALL FOR ANY PAGE LOADING ACTIVITY: 1. IF REQ.SESSION.FLAG IS TRUE : I. SET 'REQ.SESSION.FLAG' TO 'FALSE'. 2. ELSE : I. GET CURRENT TIME USING GETTIME(), STORE IT IN 'TEMP1' VARIABLE. II. GET 'REQ.SESSION.PREVIOUSTIME' FROM SESSION VARIABLE, STORE IT IN 'TEMP2' VARIABLE. III. SUBTRACT 'TEMP2' FROM 'TEMP1', STORE IT IN 'TIME' VARIABLE. // THIS GIVES TIME SPENT BY USER IN 'LASTPAGE'. IV. SET 'REQ.SESSION.PREVIOUSTIME' TO 'TEMP1'. V. PUSH 'TIME' IN 'REQ.SESSION.PAGETIME’. // ARRAY TO TRACE PAGES IN SEQUENTIAL ORDER, EXPLORED BY USER. VI. PUSH 'REQ.SESSION.LASTPAGE' IN 'REQ.SESSION.PAGES’. // ARRAY TO TRACE TIME SPENT ON A PAGE IN SEQUENTIAL ORDER, EXPLORED BY USER. VII. SET 'REQ.SESSION.LASTPAGE' TO CURRENT PAGE FOR WHICH THIS API CALL IS MADE. UP ON API CALL FOR SIGN OUT: 1. GET CURRENT TIME USING GETTIME(), STORE IT IN 'TEMP1' VARIABLE. 2. GET 'REQ.SESSION.PREVIOUSTIME' FROM SESSION VARIABLE, STORE IT IN 'TEMP2' VARIABLE. 3. SUBTRACT 'TEMP2' FROM 'TEMP1', STORE IT IN 'TIME' VARIABLE. // THAT GIVES TIME SPENT BY USER IN 'LASTPAGE'. 4. PUSH 'TIME' IN 'REQ.SESSION.PAGETIME’. // ARRAY TO TRACE PAGES IN SEQUENTIAL ORDER, EXPLORED BY USER. 5. PUSH 'REQ.SESSION.LASTPAGE' IN 'REQ.SESSION.PAGES’. // ARRAY TO TRACE TIME SPENT ON A PAGE IN SEQUENTIAL ORDER, EXPLORED BY USER. 6. PUSH 'REQ.SESSION.PAGETIME' AND 'REQ.SESSION.PAGES' TO LOG FILE. 7. STORE RESPECTIVE TIME SPENT ON RESPECTIVE PAGE IN SEPARATE DOCUMENT IN MONGODB COLLECTION. // FOR TRACING LATEST ACTIVITY OF USER. PARSING LOGS: UP ON API CALL FOR DISPLAYING ADMIN DASHBOARD: 1. GET LOG FILE. 2. PARSE IT AND PLACE RESPECTIVE TIME ON RESPECTIVE PAGE ATTRIBUTE IN DOCUMENT IN MONGODB COLLECTION. 3. AGGREGATE AND FIND AVERAGE TIME SPENT ON EACH PAGE BY A PARTICULAR USER USING USERID. 4. GET LATEST ACTIVITY FROM SEPARATE DOCUMENT IN MONGODB COLLECTION FOR USER TRACE TREE.