Note that, if you use a Search Engine to find similar programs on the web, we will find these programs too. So don't do it because you will get caught and you will get an F in the course (this is cheating). Don't look for code to use for your project on the web or from other students (current or past). Just do your project alone using the help given in this project description and from your instructor and GTA only. Finally, you should not post your code nor deploy your project on a public web site.
As in Project #3, you will develop this project on your PC/laptop using XAMPP
and you will test it using using your Mozilla Firefox web browser. In case you haven't done so,
here are again the directions how to install XAMPP:
You need to install the XAMPP web server, which includes the Apache http web server, PHP, and MySQL, and PHPMyAdmin (these are the only components you need). The installation directory is \xampp for Windows, /opt/lampp for Linux, and /Applications/XAMPP for OS X. To start the server on Windows, you run \xampp\xampp-control.exe and you start Apache. You may have to change the Security properties of this executable to Full Control for Users. If you get an error "Apache shutdown unexpectedly", read this.
Download the project4 files project4.zip. Unarchive the files inside your web server document root directory. The project4 directory contains 4 files: OAuth.php, proxy.php, yelp.html, and yelp.js. The library OAuth.php is used for authentication and should not be changed. All the web service requests to yelp.com should go through the proxy.php. See the example in yelp.js. Your project is to edit yelp.html and yelp.js as described in the description of the web application.
For this project, you will use the
When you write some search terms, for example "Mexican buffet", and push the button "Find", your application must find the 10 best restaurants that match the search terms and must display them in the map and in the display area. They may be less than 10 (including zero) sometimes. The map will display the location of these restaurants using map overlay markers with labels from 1 to 10. The text display area will display various information about these restaurants as an ordered list from 1 to 10 that correspond to the best 10 matches. Each list item in the display area will include the following information about the restaurant: the image "image_url" displayed on the web page, the "name" as a clickable "url" to the Yelp page of this restaurant, the image "rating_img_url" (1-5 stars), and the "snippet_text". Later, when you search using new terms, it will clear the display area and all the map overlay markers, and will create new ones based on the new search.
Use the form below to submit your yelp.html and yelp.js files. We do not accept email or hardcopy submissions. You may submit multiple files, if you like, as long as they have different names. After you submit the files, please double-check that your submitted files are correct by clicking on the Status link and look the submitted files.
Last modified: 10/22/2015 by Leonidas Fegaras