Giter Club home page Giter Club logo

movie-showtimes's Introduction

Movie showtimes

Web & Android Application to look up Vietnam movie showtimes

Team

  • Đinh Quang Trung
  • Nguyễn Ngọc Thanh Hải
  • Phạm Thị Thu Hòa

What it looks like

Requirement

Web / Mobile App

Features:

  • See all movies available now (all theater or with theater filter)
  • Showtimes by theater, or movies, or date
  • Search by movie name
  • Theater detail (name, address, map, images...)
  • Movie detail (name, description, poster, trailer...)

Crawler

  • Crawler schedule: everyday (movies, showtimes, theater) or manually
  • Target site data change: must have mechanism to change old invalid data

Architecture

Entities

Cinema

  • name
  • website_link

Theater

  • name
  • description
  • city
  • address
  • map_link
  • image
  • cinema

Movie

  • name
  • description
  • poster
  • trailer
  • show_date
  • length
  • genre
  • director
  • actor
  • age_restriction
  • audio_type (lồng tiếng / vietsub)
  • video_type (2D / 3D / 4DX)

Session

  • show_datetime
  • movie
  • theater

API

API:

  • /getMovies&city={city}: return all movies which have sessions in {city}

XML Schema:

  <xs:schema version="1.0" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified"
           targetNamespace="http://www.fpt.edu.vn"
           xmlns="http://www.fpt.edu.vn">
    
    <xs:simpleType name="show-time" >
        <xs:restriction base="xs:int">
            <xs:minInclusive value="0"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="youtube-url">
        <xs:restriction base="xs:string">
            <xs:pattern value="(https://)?(www\.youtube\.com/watch\?v).*" />
        </xs:restriction>
    </xs:simpleType>
       
    <xs:complexType name="Theater">
        <xs:sequence>
            <xs:element name="cinema" type="xs:string" use="required"/>
            <xs:element name="name" type="xs:string" use="required"/>
            <xs:element name="description" type="xs:string"/>
            <xs:element name="city" type="xs:string" use="required"/>
            <xs:element name="address" type="xs:string"/>
            <xs:element name="map_link" type="xs:string"/>
            <xs:element name="image" type="xs:string" use="required"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="Session">
        <xs:sequence>
            <xs:element name="id" type="xs:integer" use="required"/>
            <xs:element name="show_time" type="show-time" use="required"/>
            <xs:element name="movie" type="xs:string" use="required"/>
            <xs:element name="theater" use="required" type="Theater">          
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="Movie">
        <xs:sequence>
            <xs:element name="id" type="xs:integer" use="required"/>
            <xs:element name="name" type="xs:string" use="required"/>
            <xs:element name="description" type="xs:string"/>
            <xs:element name="poster" type="xs:string" use="required"/>
            <xs:element name="trailer" type="youtube-url"/>
            <xs:element name="show_date" type="show-time"/>
            <xs:element name="length" type="xs:string"/>
            <xs:element name="genre" type="xs:string"/>
            <xs:element name="director" type="xs:string"/>
            <xs:element name="actor" type="xs:string"/>
            <xs:element name="age_restriction" type="xs:string"/>
            <xs:element name="audio_type" type="xs:string"/>
            <xs:element name="video_type" type="xs:string"/>
            <xs:element name="sessions" use="required">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="session" maxOccurs="unbounded" type="Session">                           
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <xs:element name="movies">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="movie" maxOccurs="unbounded" type="Movie">
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
  </xs:schema>

Development

  • Maven build for all java projects
  • Netbeans IDE 7.4
  • Java Web Applications:
    • Apache Tomcat 7.0.57
    • Java JDK 6
    • Java EE 6 Web

Deployment

Bookmark URLs:

MongoDB

Connection: Use this configuration to connect to MongoDB in CI:

    String host = System.getenv("OPENSHIFT_MONGODB_DB_HOST");
    String sport = System.getenv("OPENSHIFT_MONGODB_DB_PORT");

Authentication:

  • Root User: admin
  • Root Password: (check message)
  • Database Name: jbossews

Management GUI:

Deploy:

  1. From Openshift git repository, pull code changes

    git pull github master

  2. Merge conflicts if there is any

  3. Push code to CI

    git push openshift master

  4. Check the console message to see if the build is success

Crawl new data:

Connect SSH to the server

rhc ssh jbossews

Move to deployed directory

cd /var/lib/openshift/54cb1bebfcf93359b800017d/app-root/runtime/repo/crawler-app/target/

Start the crawler

java -jar crawler-app-1.0-jar-with-dependencies.jar galaxy cgv bhd

That's it.

movie-showtimes's People

Contributors

hainnt avatar thuhoa93 avatar trungdq88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

sgfswen

movie-showtimes's Issues

Web Client todo list

  • Hightlight selected item
  • Add city select
  • Add owner information
  • Fix UTF-8 bug
  • Add detail page for movies / theater
  • Implement "Search by theater"
  • Implement "Search by date" (?)
  • Add change city feature

Web Service bugs

  • City filter is not working
  • Automatic crawler
  • Delete database before insert new data
  • Movie name & theater name need to be unified.
  • Wrong month (plus 1)

Add warning message

Add warning message to About section:

This schedule might changed at the moment, please check yourself before purchasing tickets

Vietnamese

Lịch chiếu phim chính thức có thể bị thay đổi mà không được báo trước, vui lòng tự kiểm tra trước khi mua vé

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.