/imdb-finder

a Java console client-server search engine app for IMDB

Primary LanguageJava

imdb-finder

A Java console client-server search engine app for the International Movie Database.


Prerequisites

JRE 9+ is required to run this project. Download the latest JRE here:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installation

Clone this repository to your computer:

git clone https://github.com/stunstyle/imdb-finder

How to run

  1. Run IMDBServer:

java -cp target/imdb-finder-1.0-SNAPSHOT.jar com.stunstyle.imdb.finder.IMDBServer

  1. Connect one or more clients:

java -cp target/imdb-finder-1.0-SNAPSHOT.jar com.stunstyle.imdb.finder.IMDBClient

Usage

These commands need to be entered in a client's console.

  • get-movie <movie_name> --fields=[field_1,field_2]

    returns info about movie in JSON format

    if movie is not in local cache, it is downloaded via the OMDB API

    get-movie-example

  • get-movies --order=[asc|desc] --genres=[genre_1, genre_2] --actors=[actor_1, actor_2]

    returns info about all movies featuring selected actors

    NOTE: works only for movies located in local cache

    get-movies-example

  • get-tv-series <name> --season=<value>

    returns all episodes of TV series' season

    get-tv-series-example

  • get-movie-poster <name>

    downloads movie 's poster to local cache

  • clear-cache

    clears local cache

    Future goals

    • Migrate to gson
    • Create a GUI
    • Improve util package hierarchy
    • Add support for external config file
    • Achieve and maintain 75% code coverage
    • Add support for logging for the server