Login on omega and look at your path using the unix command pwd. For example, if your username is xyz1234, you will see:
/home/x/xy/xyz1234In the following, replace the path /home/x/xy/xyz1234 with your own path. Then, you do the following:
cd public_html wget http://lambda.uta.edu/cse5335/project2.tgz tar xfz project2.tgz cd project2 ls -alThen edit the file .htaccess (note: it starts with a dot) inside the project2 directory using your favorite editor (vi, pico, emacs, etc), and change the line:
AuthUserFile /home/f/fe/fegaras/public_html/project2/.htpasswdto point to your own path. Then do:
htpasswd .htpasswd xyz1234(use your username instead of xyz1234). It will ask you for a password twice. This is the password you use when you run your web application on a browser. It already contains a password for the GTA; so the GTA can run the script of any student but you can only run your own script.
The project2 directory contains 3 files: proxy.php, movies.html, and movies.js. The proxy script proxy.php is used to avoid the cross-domain restriction when using Ajax. All the web service requests to TMDb should go through this proxy. See the example in movies.js. Your project is to edit movies.html and movies.js as described in the description of the web application.
You are going to use the Web Service REST API of the movie DB TMDb. You first need to get an API access key from Sign up a TMDb account. The access key will allow you to send web service requests to TMDb (maximum 3 requests per second).
After you get the API key, you put it in proxy.php and you test your setup on your web browser by using the URL address:
http://omega.uta.edu/~xyz1234/project2/movies.html(use your username instead of xyz1234). and by typing the title of your favorite movie. This will display a list of movies that match this title in JSON form.
Your application should have a text section where one can type a movie title (eg, The Matrix), one "Display Info" button to search, one section to display the search results, and one section to display information about a movie. The search results is an itemized clickable list of movie titles along with their years they were released. When you click on one of these movie titles, you display information about the movie: the poster of the movie as an image, the movie title, its genres (separated by comma), the movie overview (summary), and the names of the top five cast members (ie, actors who play in the movie).
You need to use the following TMDb HTTP methods listed in The Movie Database API:
Note that there is a lot of information returned by these web services. You need to use very few parts of this information only.
Important: In the comment on top of your movies.html file, put the URL address to run your web application, such as http://omega.uta.edu/~xyz1234/project2/movies.html. Use the form below to submit your movies.html and movies.js files. We do not accept email or hardcopy submissions. You may submit your files as many times as you like, but only the most recently submitted files will be retained and evaluated (newly submitted files replace the old files under the same file name). After you submit the files, please double-check that your submitted files are correct by clicking on the Status link.Last modified: 02/01/14 by Leonidas Fegaras