FilmMVC is a film management system developed using Java Servlets and JSP. The application allows users to perform CRUD operations on a film database and integrates with external APIs for additional film information.
- CRUD Operations: Users can add, edit, delete, and list films.
- Search Functionality: The application provides search capabilities for films by various criteria.
- External API Integration: It integrates with external APIs to fetch additional film information.
- Backend: Java, Servlets, JSP
- Database: MySQL
- Build Tool: Apache Maven
- IDE: Eclipse
The FilmMVC project follows a Model-View-Controller (MVC) design pattern.
- Model: Represents the film data and business logic.
- View: Displays the data (film information) to the user.
- Controller: Handles user input and interacts with the model to update the view.
- Java Development Kit (JDK) 8 or later
- Apache Maven
- MySQL Server
-
Clone the repository:
git clone https://github.com/suatkocar/FilmMVC.git
-
Navigate to the project directory:
cd FilmMVC
-
Set up the database:
- Create a MySQL database named filmdb.
- Execute the SQL script located at
src/main/resources/createfilms.sql
to create the necessary tables.
- Create and configure the config.properties file:
-
Copy the example config file:
cp src/main/resources/config.properties.example src/main/resources/config.properties
-
Edit the config.properties file and set your database and API credentials:
jdbcUrl=jdbc:mysql://localhost:3306/filmdb jdbcUser=your-username jdbcPassword=your-password TmdbApiKey=your-api-key
-
Build the project:
mvn clean install
-
Deploy the
FilmMVC.war
file created in target folder to your servlet container (e.g., Apache Tomcat).
Access the application at http://localhost:8080/FilmMVC
.
FilmMVC
├── build
├── deploy
├── src
│ ├── main
│ │ ├── java
│ │ │ ├── controller
│ │ │ ├── dao
│ │ │ ├── listener
│ │ │ └── model
│ │ ├── resources
│ │ └── webapp
│ │ ├── META-INF
│ │ ├── WEB-INF
│ │ ├── audio
│ │ ├── css
│ │ ├── images
│ │ ├── js
│ │ └── json
└── README.md
This project is licensed under the MIT License - see the LICENSE.md file for details.
For any inquiries, please contact me at [email protected].