TRAVEL PORTAL

18
1

Transcript of TRAVEL PORTAL

Page 1: TRAVEL PORTAL

1

Page 2: TRAVEL PORTAL

Travel Portal

Prepared by Supervised

by Gaurav Kumar

Nupur Bansal

Bhavya Agarwal

2

Page 3: TRAVEL PORTAL

Agenda

• Introduction

• Technology stack

• Use Case Diagram

• 4+1 View Diagrams

• N-Tier Architecture Diagram

• Sonar Report

3

Page 4: TRAVEL PORTAL

Introduction

Portal will be used by Visitor, Registered User and Admin

• Unregistered user can search flights, self-register and can view

offers.

• Registered user can search a flight, book and cancel ticket,

update profile, view top deals and own travel history and receive

email etc.

• Admin of the portal can manage flights, manage flight

schedules(via CSV file upload) ,manage offers (via XML file

upload) and generate PDF report.

4

Page 5: TRAVEL PORTAL

5

• Application Framework : Struts 2

• Back-End ORM Technology : Hibernate

• Build Tool : Maven

• Database : My SQL

• UI : JavaScript, JQuery, Ajax, JSON, CSS

• Logging Framework : Log4j

• Testing: JUnit 4.4

• Code Analysis: Sonar

• Extra API: Java Mail API(Mailing), SAX parser(XML file Reading), Quartz (Scheduler)

Technology Stack

Page 6: TRAVEL PORTAL

6

N-Tier Architecture Diagram

Presentation Layer (VIEW)Contains Web pages to provide User Interface

Using: JSP, HTML, CSS, JSON, AJAX, JS, JQuery

Business LayerContains business logic

Controller

Data Access LayerContains Dao classes have methods to communicate with DB

Domain

Objects

(Models)

Hibernate (ORM)

Database

(MySql)

Page 8: TRAVEL PORTAL

4+1 View

8

• Process View (Activity Diagram)

• Logical View (ER Diagram, Class Diagram,

Sequence Diagram)

• Development View (Component Diagram)

• Physical View (Deployment Diagram)

Page 9: TRAVEL PORTAL

Activity

Diagram

9

Page 10: TRAVEL PORTAL

ER Diagram

10

Page 11: TRAVEL PORTAL

11

Class Diagram

Page 12: TRAVEL PORTAL

12

Login Sequence Diagram

Page 13: TRAVEL PORTAL

Component Diagram

13

Page 14: TRAVEL PORTAL

14

Deployment Diagram

Page 15: TRAVEL PORTAL

Sonar Report

15

Page 16: TRAVEL PORTAL

Summary

16

Travel Portal is a portal for booking flight tickets and several other

functionalities. It uses struts2 as framework, hibernate as the ORM tool,

Maven as the build tool and views are created using jsp, Ajax, json, html,

jquery etc.

Following is the code quality report generated using SONAR :

• Code quality: Rule Compliance(100%)

Unit Test Coverage(81.1%),

Documentation(75%),

• Code Complexity: Per Method: 1.6

Per Class: 4.7

Per File: 4.7

Page 17: TRAVEL PORTAL

Questions

17

Page 18: TRAVEL PORTAL

Thank You!

18