Skip to content

visnunathan8/NewsApplication-using-Java-JSP-Servlets-Postgres-ObserverPattern-OOPS

Repository files navigation

NewsApplication

To design a system that can read API/JSON data from The New York Times and produce results to application:

  • Data collection from The New York Times.
  • Displaying it in the User Interface.
  • Designing Observer Designer Pattern in the existing system.

TECHNOLOGIES USED

• JAVA • JSP • SERVLET • MYSQL • HTML • CSS • JAVASCRIPT • SELENIUM

USE CASE DIAGRAM

use case diagram

IMPLEMENTATION

OBSERVER DESIGN PATTERN SEQUENCEDIAGRAM

This describes the ongoing picture inside the application from programmer’s perspective. In the below given diagram, two reviewers has been defined along with two subscribers. The subscribers are allowed to subscribe to the reviewers they wish to add. The NewsFeedListener are used to communicate with the corresponding reviewer. Once the Subscriber has subscribed to them, whenever the Corresponding reviewer has posted any content, the subscriber will receive a notification regarding it and can view the data.

THE PROJECT IS BASICALLY DESIGNED USING JSP AND SERVLETS. INTIALLY THE DATA IS PULLED FROM THE API (https://developer.nytimes.com/) AND IS STORED IN A LOCAL MYSQL DATABASE. THE OBSERVER DESIGN PATTERN IS IMPLEMENTED WITH THE HELP OF REVIEWERS AND USER VIEW. THE REVIEWER CAN POST THE REVIEW FROM THEIR ACCOUNT AND THE CORRESPONGING USER WHO HAVE SUBSCRIBED WILL BE ABLE TO SEE THEM.

MYSQL DUMP

Will contain the basic data's form the api along with some custom review data. the reviewer can login through username and password as : reviewer1. Similarly user1 as username and password for user login.

Testing

UNIT TESTING image

SELENIUM TESTING image

Will contain the basic data's form the api along with some custom review data. the reviewer can login through username and password as : reviewer1. Similarly user1 as username and password for user login.

LOGIN PAGE

image

REGISTRATION PAGE

image

REVIEWER VIEW

image

USER VIEW

image

REVIEW DATA LIST

image

SUBSCRIBING REVIEWER AND SUBSCRIBED DATA LIST

image

VIDEO EXPLANATION

https://drive.google.com/file/d/1EhZCfjIxwD5eYHFlfHr_6XS7_29jjQBy/view?usp=sharing

About

NewsApplication-using-Java-JSP-Servlets-Postgres-ObserverPattern-OOPS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •