Skip to content
anushyakkutty edited this page Feb 10, 2016 · 4 revisions

Welcome to the MovieMon wiki!

-- More details should be updated..

How to build ?

From the source directory run "gradle myDist"
Extract the zip file generated. Run the script mybat.bat from command prompt with argument "--intall"

View database using hsqlDatabaseManager.

Run the following commands. [ provided install is performed first, which will copy all the libs to the mentioned directory ]
set CLASSPATH=C:\Program Files\MovieMon\lib\hsqldb-2.3.3.jar
java org.hsqldb.util.DatabaseManager

Once the application is opened, choose type as Standalone.
Modify the url so that it points to the db file location. eg : jdbc:# hsqldb:file:C:\Program Files\MovieMon\db\MovieMonDb
This should open the db otherwise read here.

REST URLs to be used

Sorting based on name

http://localhost:8080/moviemon/movies/sortedmovies?action=sort&sortParam=name&sortType=desc http://localhost:8080/moviemon/movies/sortedmovies?action=sort&sortParam=name&sortType=asc

Sorting based on imdb ratings

http://localhost:8080/moviemon/movies/sortedmovies?action=sort&sortParam=ratings&sortType=desc http://localhost:8080/moviemon/movies/sortedmovies?action=sort&sortParam=ratings&sortType=asc

Adding favorites

POST : http://localhost:8080/moviemon/movies/favorites/{id}