0% found this document useful (0 votes)
7 views20 pages

9196 WebS CA2 WebbasedMovieRecordSystem

The document presents a project report on a Web-based Movie Record System developed by Rajan Vishwakarma as part of his Bachelor of Computer Science program. The system is designed to manage and catalog movie information using RESTful web services, providing features like movie management, database connectivity, and a user-friendly interface. The report includes details on project objectives, system requirements, and a conclusion highlighting the application's capabilities and technologies used.

Uploaded by

joshuap22eco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views20 pages

9196 WebS CA2 WebbasedMovieRecordSystem

The document presents a project report on a Web-based Movie Record System developed by Rajan Vishwakarma as part of his Bachelor of Computer Science program. The system is designed to manage and catalog movie information using RESTful web services, providing features like movie management, database connectivity, and a user-friendly interface. The report includes details on project objectives, system requirements, and a conclusion highlighting the application's capabilities and technologies used.

Uploaded by

joshuap22eco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

MAHATMA EDUCATION SOCIETY’S

PILLAI COLLEGE OF ARTS, COMMERCE & SCIENCE

(Autonomous)

NEW PANVEL

PROJECT REPORT ON

“Web-based Movie Record System ”

IN PARTIAL FULFILLMENT OF BACHELOR OF


COMPUTER SCIENCE

SEMESTER V – 2024-2025

PROJECT GUIDE :-

Prof.Abhijeet Salvi

SUBMITTED BY: Rajan Vishwakarma


ROLL NO: 9196
Evaluation sheet for continuous assessment with rubrics
Class: Computer Science
Subject:WebServices
Details about the continuous Assessment 2/Project work:-
Web-based Movie Record System
Name of the Student : Rajan Vishwakarma
Roll Number :9196 Class / Division :TYCS/B
Name of Evaluator: Abhijeet Salvi

Please circle appropriate score


Grading Criteria Fair Goo Excelle Tota
d nt l

Introduction/ Description of
the Case 1 2 3 /3

SWOT Analysis of the


company used for case
analysis pertaining to the 3 4 5 /5
case (strength of CA2
topic: e.g main important
feature of CA1, Weakness:
limitations of the project,
Opportunities: in carrier
in the future, Threat:
obstacles that can cause
failure to project CA2
Learnings from the case

2 3 4 /4
Delivery/presentation skills
1 2 3 /3

Total
/15

Co-ordinator,Shubhangi Pawar
Project Title: Web-based Movie Record System

Project Description:
The Web-based Movie Record System is a comprehensive and user-friendly
application designed to manage and catalog movie information. This system
leverages web services to provide seamless access to movie data, enhancing the
user experience by enabling them to search, explore, and interact with a vast
database of movies.
Features of the Web-based Movie Record System:
1. Movie Management:
2. RESTful Web Service Integration:
3. Database Connectivity:
4. Responsive Client-Side:
5. Data Fetching with AJAX:
6. Entity Class for Movie Records:
7. Styled Web Interface:
System Requirements:
Hardware Requirements:
• Minimum of 4GB RAM
• 2.0 GHz Processor or higher
• 500 MB of free disk space
Software Requirements:
• Windows, Linux, or macOS
• Java EE Web Profile or higher
• GlassFish/WildFly server or any Java EE compliant server
Objectives of the Project:
1. Efficient Movie Record Management:
2. Seamless Interaction Between Client and Server:
3. Database Integration:
4. User-Friendly Interface:
5. Real-Time Data Fetching:

Server-Side:

1] movie.java:
package com.movies;

import java.io.Serializable; import


javax.persistence.Entity; import
javax.persistence.GeneratedValue; import
javax.persistence.GenerationType; import
javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;

/**
*
* @author Goutham
*/
@Entity
@XmlRootElement
public class movie implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;

public Long getId() {


return id;

public void setId(Long id) {


this.id = id;
}

private String moviename;

/**
* Get the value of moviename
*
* @return the value of moviename
*/
public String getMoviename() {
return moviename;
}

/**
* Set the value of moviename
*
* @param moviename new value of moviename
*/
public void setMoviename(String moviename) {
this.moviename = moviename;
}

private String genre;

/**
* Get the value of genre
*
* @return the value of genre
*/
public String getGenre() {
return genre;
}

/**
* Set the value of genre
*
* @param genre new value of genre
*/
public void setGenre(String genre) {
this.genre = genre;
}

private String heroname;

/**
* Get the value of heroname
*
* @return the value of heroname
*/
public String getHeroname() {
return heroname;
}

/**
* Set the value of heroname
*
* @param heroname new value of heroname
*/
public void setHeroname(String heroname) {
this.heroname = heroname;
}

private String directorname;

/**
* Get the value of directorname
*
* @return the value of directorname
*/
public String getDirectorname() {
return directorname;
}

/**
* Set the value of directorname
*
* @param directorname new value of directorname
*/
public void setDirectorname(String directorname) {
this.directorname = directorname;
}

private int imdbrating;

/**
* Get the value of imdbrating
*
* @return the value of imdbrating
*/
public int getImdbrating() {
return imdbrating;
}
/**
* Set the value of imdbrating
*
* @param imdbrating new value of imdbrating
*/
public void setImdbrating(int imdbrating) {
this.imdbrating = imdbrating;

@Override public
int hashCode() { int
hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are
not set
if (!(object instanceof movie)) {
return false;
}
movie other = (movie) object;
if ((this.id == null && other.id != null) || (this.id != null &&
!this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "com.movies.movie[ id=" + id + " ]";
}

2] movieFacadeRest.java: package
com.movies.service;

import com.movies.movie; import


java.util.List; import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.ws.rs.Consumes; import
javax.ws.rs.DELETE; import javax.ws.rs.GET;
import javax.ws.rs.POST; import
javax.ws.rs.PUT; import javax.ws.rs.Path;
import javax.ws.rs.PathParam; import
javax.ws.rs.Produces;

/**
*
* @author Goutham
*/
@Stateless
@Path("com.movies.movie")
public class movieFacadeREST extends AbstractFacade<movie> {
@PersistenceContext(unitName = "imdratingPU") private
EntityManager em;

public movieFacadeREST() {
super(movie.class);
}

@POST
@Override
@Consumes({ "application/json"})
public void create(movie entity) {
super.create(entity);
}

@PUT
@Path("{id}")
@Consumes({ "application/json"})
public void edit(@PathParam("id") Long id, movie entity) {
super.edit(entity);
}

@DELETE
@Path("{id}")
public void remove(@PathParam("id") Long id) {
super.remove(super.find(id));
}

@GET
@Path("{id}")
@Produces({"application/json"}) public
movie find(@PathParam("id") Long id) {
return super.find(id);
}

@GET
@Override
@Produces({ "application/json"})
public List<movie> findAll() {
return super.findAll();
}

@GET
@Path("{from}/{to}")
@Produces({ "application/json"})
public List<movie> findRange(@PathParam("from") Integer from,
@PathParam("to") Integer to) {
return super.findRange(new int[]{from, to});
}

@GET
@Path("count")
@Produces("text/plain") public String
countREST() { return
String.valueOf(super.count());
}

@Override
protected EntityManager getEntityManager() {
return em;
}

OUTPUT:
CLIENT-Side:
Index.html:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movies record system</title>
<style>
h1 {
text-align: center;
background-color: #3498db; /* Background color for the title */
color: white; /* Text color for the title */ text-shadow: 2px 2px
4px rgba(0, 0, 0, 0.3); font-size: 36px; margin-top:
20px;
padding: 10px 0; /* Add padding to increase the background size */
}
body {
font-family: Arial, sans-serif;
} table { width:
80%; margin: 20px auto;
border-collapse: collapse;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Adding a box shadow for
the table */
}
th, td {
border: 1px solid #ddd;
padding: 8px; text-align:
left;
}
th {
background-color: #f2f2f2;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}

</style>

<script>
var request = new XMLHttpRequest();
request.open('GET',
'http://localhost:33689/imdrating/webresources/com.movies.movie', true);
request.onload = function () { // begin accessing JSON data here
var data = JSON.parse(this.response);

for (var i = 0; i < data.length; i++) {


var table = document.getElementById("myTable");

var row = table.insertRow();


var cell1 = row.insertCell(0); var
cell2 = row.insertCell(1); var cell3
= row.insertCell(2); var cell4 =
row.insertCell(3); var cell5 =
row.insertCell(4); var cell6 =
row.insertCell(5);

cell1.innerHTML = data[i].id;
cell2.innerHTML = data[i].moviename;
cell3.innerHTML = data[i].genre;
cell4.innerHTML = data[i].heroname;
cell5.innerHTML = data[i].directorname;
cell6.innerHTML = data[i].imdbrating;

}
};
request.send();
</script>

</head>
<body>
<header>
<h1>Movies record system</h1>
</header>
<div class="container">
<!-- Add your content here -->
<h2>Welcome to the Movies record system</h2>
<p>This is a simple template for your Movies record system
website.</p>

<!-- Sample employee list -->


<h3>Student Detail Table</h3>
<table id="myTable">
<tr>
<th>Id</th>
<th>moviename</th>
<th>genre</th>
<th>heroname</th>
<th>directorname</th>
<th>imdbrating</th>
</tr>
</table>

</div>
</body>
</html>
OUTPUT:
Conclusion:

The Web-based Movie Record System is a robust and scalable application


designed to facilitate the efficient management of movie information. Through
the use of RESTful web services and a database-backed Java EE application, the
system enables seamless CRUD operations. By leveraging modern web
technologies such as HTML5, CSS, JavaScript, and AJAX, the client-side ensures
an interactive and user-friendly experience. The integration of JPA and a
relational database allows the application to store and retrieve movie data
efficiently, making it a comprehensive solution for movie cataloging. This project
demonstrates the potential of Java EE in building data-driven, web-based
applications with RESTful architecture.

Thank you!

You might also like