This project uses Google Maps, Google Places, the Yelp search API, and the Foursquare API to show users bike shops near their selected location.
- Search local bike shops using the Google Places, Yelp search and Foursquare search APIs.
- Update save search location in browser storage using Your Location text input.
- Search results using the Search text input, and autocomplete.
- Filter results by suburb, using the Select Suburb menu.
- View results from all three APIs by clicking marker at location, or by selecting a place from the side bar or search text.
A built version of project is inside the dist directory, the project can be viewed locally by opening dist/index.html in a browser.
The source code is viewable in the src directory.
The project uses JSDoc, and the generated HTML documentation is viewable in docs/index.html.
The project can be built from source as follows (requires NPM, Bower & Grunt installed):
$ cd /path/to/project/dir
$ npm install
$ bower install
$ grunt
This project uses the following libraries:
- API keys are kept in src/js/tokens.js. This is bad practice, on a real project they should be kept on the the server, and out of version control, with API calls also made server side.
- The project uses Require JS to manage module loading and keep the global namespace clean. js/main.js is the entry point into the app.
Alistair McKelvie