Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trungdq88/movie-showtimes

Web Service & Android Application to look up Vietnam movie showtimes
https://github.com/trungdq88/movie-showtimes

crawler java movie-showtimes theater

Last synced: 11 days ago
JSON representation

Web Service & Android Application to look up Vietnam movie showtimes

Awesome Lists containing this project

README

        

# 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:

```xml






































































```

# 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:
-
- CI Web Client: http://jbossews-trungdq88.rhcloud.com/
- CI Web Service: http://jbossews-trungdq88.rhcloud.com/API/getMovies?city=
- MongoDB GUI: https://jbossews-trungdq88.rhcloud.com/rockmongo/
- Openshift repository (require ssh authen): `ssh://[email protected]/~/git/jbossews.git/`

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:**
- URL: https://jbossews-trungdq88.rhcloud.com/rockmongo/
- RockMongo User: admin
- RockMongo Password:(check message)

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.