/code-test-js-1

Apache License 2.0Apache-2.0

Ravelin Javascript Code Test

Build a d3 graph of similar restaurants in London using the Foursquare API. Feel free to use any lib/framework you deem as necessary. Please include a readme with your code test.

User Story

A user visits a website with three text fields:

  • Foursqaure API Client ID
  • Foursqaure API Client Secret
  • Restaurant Name

After entering the API ID/secret and restaurant name, the user is given a list of restaurants to choose from (as their seed node). Once the restaurant is picked a d3 graph with a single node will appear. As time passes the graph will grow with restaurants the Foursquare API returns as similar, starting with the seed node and continuing down the network. The graph will continue to grow until the user presses the spacebar.

Fourquare API Endpoints

Resources

Obtaining Foursquare Credentials

To get access to the Foursquare API you need to create a developer account. Follow the steps in the Foursquare docs to:

  • Sign up
  • Create an app (your app URL can be localhost)
  • Obtain your client ID and secret