The Frontend: JavaScript & AJAX Project
This project's goal was to design and implement a single-page, responsive map application—with components usable across modern desktop, tablet, and phone browsers—that allows users to view and filter a list of pre-selected neighborhood food and dessert establishments. Once an establishment is selected, details pertaining to it—such as its address and cross street on the map—are acquired through Foursquare® and displayed on the map.
-
This application uses the Foursquare® application programming interface but is not endorsed or certified by Foursquare Labs, Inc. All of the Foursquare® logos (including all badges) and trademarks displayed on this application are the property of Foursquare Labs, Inc.
-
This application uses a Sandbox Account. In other words, this application has a hourly/daily/monthly rate limit to the Foursquare® API endpoints. After the limit if reached the application will receive a 'quota_exceeded' error until the limit is reset.
- Access the web application using your smartphone, tablet, or computer.
http://www.davidsimowitz.com/neighborhood-map/index.html
$ git clone https://github.com/davidsimowitz/fullstack-nanodegree-project-5.git
- Above command is optional.
- Alternatively you may download the files into the directory.
-
Enter the project directory.
$ cd fullstack-nanodegree-project-5
- Verify the following files/folders are present before continuing:
- css
- img
- index.html
- js
- README.md
- Verify the following files/folders are present before continuing:
-
Update Client ID and Client Secret to prevent 'quota-exceeded' errors:
- Update the 'client_id' and 'client_secret' values on lines 84–85 of the map.js file.
$ fullstack-nanodegree-project-5/js/map.js
- New values can be obtained by setting up an account through Foursquare® Developers.
-
Connect to the frontend:
- Connect to the application using your web browser.
- (location of application file displayed below)
$ fullstack-nanodegree-project-5/index.html