This web project provides an interactive, searchable map of some places to eat and drink in Orange. I've built it as part of Udacity's Front-End Web Developer Nanodegree.
You have two options for viewing and testing the site:
-
For testing and development on a local server:
-
Clone or download the master branch.
-
The repository's
master
branch doesn't include the Google Maps and Foursquare API keys that you'll need for the map to work. Obtain your own API keys by following the links to the APIs below, then ensure thejs
directory includes aconfig.js
file that defines a JavaScript object with variablesGOOGLE_MAPS_KEY
,FOURSQUARE_CLIENT_ID
andFOURSQUARE_CLIENT_SECRET
set to the respective values. To help you, there is aconfig-example.js
file that you can rename or copy and then edit to paste your key into the appropriate place. -
Run
npm install
to install dev dependencies. -
After changing any of the source files, run
gulp build
to update the site. -
Use
gulp serve
to open the site in your browser. Alternatively, you can usegulp serve:src
to open the site from the development directory, which can be useful for debugging and testing with unminified code. Note that you'll be shown an ngrok URL in the terminal that can be used for access from other devices.
-