Professional Documents
Culture Documents
We would like to express our deepest appreciation to all those who provided us the
possibility to complete this project. A special gratitude to our project supervisor, Dr.
Roshan Chitrakar, whose contribution in stimulating suggestions and encouragement,
helped us to coordinate our project. We express our profound gratitude to the principal
Er.(principle) and the vice principal(vice principal) for inspiring and supporting us
during the entire project. Special thanks goes to our friend Mr. Surya Man Shrestha for
helping us to giving valuable suggestions for our project. Last but not least, many
thanks goes our friend Mr. Mithun Adhikari, HOD sir Er. Birendra Bista, Department
of Research and Development, for his continuous encouragement and support
throughout the project. We have to appreciate the guidance given by other supervisors
in our project that have helped to improve our skills, thanks to their comment and
advices.
Furthermore, we wish to express our heartfelt gratitude to our families, parents and
friends, who have always served as the strongest source of inspiration in all our ventures
we have undertaken.
Rajan Lamichane
Sandesh Pokherel
i
ABSTRACT
The proposed of making project is to create chat portal application that make people
chat in same network and they feel secured while chatting. One can connect with
another with client server architecture. This software will be really help to chat with
same network like LAN people feel conformable using this in small talk. This will be
java based application which really solved the user need in small task. This application
is developed which java technology. Chat concept of client server architecture is shown.
We have tried to design the project in such way that user may not have any difficulty
in using this application without much effort. This software can be really used by end
user who have desktop running devices with them.
ii
TABLE OF CONTENTS
Acknowledgement .......................................................................................................... i
ABSTRACT ...................................................................................................................ii
CHAPTER 1 Introduction.............................................................................................. 1
3.2 Analysis................................................................................................................ 6
iii
CHAPTER 7 Bibliography .......................................................................................... 19
CHAPTER 8 Appendix................................................................................................ 20
iv
LIST OF FIGURE
v
LIST OF TABLE
vi
CHAPTER 1
INTRODUCTION
This system provides a suitable platform for both the clients and by providing all the
information’s required in the real-time texture message Chat may refer to any kind of
communication that offers a real-time transmission of text messages from sender to
receiver. Chat message are generally short in order to enable other participants to
respond quickly. Thereby, a feeling similar to a spoken conversation is created, which
distinguishes chatting from other text-based communication. Online chat may address
point-to-point communications as well as multicast communications from one sender
to many receivers. Sender send message and receiver receive message. Chat
application solve the real problem in real time. The receiver receive message in real
time.
To build java based chat application there should be knowledge of networking in java.
The manipulation of graphics user interface(GUI) should be handled properly. In some
cases, there is needed to communicate in LAN networks between sender and receiver,
it is more applicable in that situation. We do have group chat between members so the
outside world should not distract in that manner. It is more handy because its graphical
user interface is simple and its manageable setting.
1.2 Objectives
The aim and objective of this project is to make chat portal using client server
architecture. Followings are the benefits that comes with this application.
1
1.3 Significance of Study
The purpose shows the importance of chat in daily life. For those who use this app they
should chat with respective they want as their condition. They can able to choose
according to their need for the purpose they are using it. No other disturbance from
outside parts. As client and server itself two bodies there is not any disturbance of
outside. The outside user should not bother while in portal.
2
CHAPTER 2
LITERATURE STUDY
In order to complete our task, we used Java platform to build a portable, handy product
that can run in any desktop platform. We used Java Language to build our application.
We used SQLite to implement database. On comparing our project with other similar
applications, we came to conclude with the following:
3
Application
Features
Chat Portal Messenger Viber
4
CHAPTER 3
METHODOLOGY
3.1 Software development lifecycle
Analysis Phase: In this phase, analysis was done in order to find out the requirements
of the system. The outcome of this phase is a SRS which is an acronym for “System
Requirement Specifications”.
Design Phase: In this phase the SRS was translated into the system’s design. Context
Diagram, DFD, ER – Diagram, Use Case Diagram and Class Diagram were developed.
5
Coding Phase: In this phase coding was done according to the design and a working
system was developed by the end of this process.
Testing Phase: In this phase, the system was tested. With each testing a list of changes
to the system developed, was suggested and the changes were applied to the software
and the software was delivered as a successive increment until a satisfying system was
achieved.
3.2 Analysis
From the above use case diagram at first, the admin must start the server. Then the user
login to the system and send and receive message with in the same network and
communication start. Thus, the use case diagram is the set of user, system and relation
between them in the popular environment and each use case in the system boundary
fulfill the particular goal.
6
3.2.2 Fully dressed use case
Secondary Actor:
Stakeholders:
Preconditions:
Post conditions: It must verify user login & allow communicate with each other.
Basic flow:
Alternate flow:
Stakeholders:
7
Post conditions: The user most communicate with each other.
Basic flow:
Alternate flow:
Stakeholders:
Post conditions: sending & receiving the message between users should be done
without any error.
Basic flow:
Alternate flow:
- Receiver couldn’t receive message in case the sender didn’t press send
button or enter button.
Stakeholders:
Post conditions: receiving & sending the message between users should be done
without any error.
Basic flow:
Alternate flow:
- Receiver couldn’t receive message in case the sender didn’t press send
button or enter button.
9
Figure 3:SSD for start server
When the admin start the server then it display the server started message ready for
connection then users activated.
User logins and the system validates to checks for the right user. After login process is
completed users can communicate with each other in same network. which is validate
by server. The same process applies for next user.
10
3.3 Design
When the use login to the system, the server verifies the right user according to
username and password field. Server can add user and update data also according to the
requirement.
11
3.3.2 Sequence Diagram
At first the admin start the server then the server GUI display the server started message
and it also this message is recorded to the server at that instance. Now user login to the
system, authenticate and verify the user by the server. The user1 send and user 2 receive
the message and vice-versa through the server stream.
12
3.3.3 Design Class Diagram(DCD)
The different component shown in the figure interact with each other. The admin
interacts with the GUI and start the server. User1 interact with GUI and by inputting
username and password and same applies to user2 and they interact with each other.
13
CHAPTER 4
TESTING
Software testing is a critical element of software quality assurance and represents the
ultimate review of specification, design and code generation.
14
TC4 Username and password Authentication Username and
left blank. password must be
provided.
15
CHAPTER 5
CONCLUSION
From this project, we are able to send and receive the message between users in groups
only within the same network. We can implement this technique in the group of user or
an organization. If we need to extend the number of user in the group, consult with the
admin to add and delete users. While making this project, we gained a lot of experience
of working as a team. We discovered various predicted and unpredicted problems and
we enjoyed a lot solving them as a team. We adopted things like video tutorials, text
tutorials, internet and learning materials to make our project complete. Furthermore,
now we know much more about the java language and the networking in java.
16
CHAPTER 6
FURTHER WORK
In this application, we can able to make a group chat between limited user in an
organization with in a same network.
We can further extend our project by making centralized database and we can
implement this by using java JDBC and ODBC and we can add further Usecase like
sign up and logout private chat option and the user may login to the system make private
chat as they need. We can further make to support for global network. We can further
save our conversation in either file or in database using centralized database technology
the user can retrieve their conversation from database directly without any problem.
17
18
CHAPTER 7 BIBLIOGRAPHY
[1] Kathy Sierra & Bern Bates, Head first java, 2nd.: O’Reilly Media, Inc., 2005.
19
CHAPTER 8
APPENDIX
20
Figure 9: Server GUI after started
21
CLIENT USER INTERFACE
22
Figure 11: Client GUI after connection
23