{"action":"created","issue":{"url":"https://api.github.com/repos/graphql/graphiql/issues/20","labels_url":"https://api.github.com/repos/graphql/graphiql/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/graphql/graphiql/issues/20/comments","events_url":"https://api.github.com/repos/graphql/graphiql/issues/20/events","html_url":"https://github.com/graphql/graphiql/pull/20","id":103818291,"number":20,"title":"Use port 8081 if 8080 is taken so example works with relay-starter-kit","user":{"login":"LegNeato","id":368904,"avatar_url":"https://avatars.githubusercontent.com/u/368904?v=3","gravatar_id":"","url":"https://api.github.com/users/LegNeato","html_url":"https://github.com/LegNeato","followers_url":"https://api.github.com/users/LegNeato/followers","following_url":"https://api.github.com/users/LegNeato/following{/other_user}","gists_url":"https://api.github.com/users/LegNeato/gists{/gist_id}","starred_url":"https://api.github.com/users/LegNeato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LegNeato/subscriptions","organizations_url":"https://api.github.com/users/LegNeato/orgs","repos_url":"https://api.github.com/users/LegNeato/repos","events_url":"https://api.github.com/users/LegNeato/events{/privacy}","received_events_url":"https://api.github.com/users/LegNeato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-29T00:52:47Z","updated_at":"2015-08-29T20:19:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/graphql/graphiql/pulls/20","html_url":"https://github.com/graphql/graphiql/pull/20","diff_url":"https://github.com/graphql/graphiql/pull/20.diff","patch_url":"https://github.com/graphql/graphiql/pull/20.patch"},"body":"This makes it so we try to bind to `8080`. If it fails, we assume that they are using [relay-starter-kit](https://github.com/relayjs/relay-starter-kit) and instead bind to `8081`. A note is output in case something else is using `8080`.\r\n\r\nThis lets us use the Test/canned data when `8080` is free (current behavior) and defer to relay-starter-kit for its data when it has already started up on `8080`.\r\n\r\nTest Plan\r\n-------------\r\n\r\n1. Start relay-starter-kit, see it works.\r\n2. Stop relay-starter-kit.\r\n3. Start GraphiQL example, see it uses Test data.\r\n4. Stop  GraphiQL example.\r\n5. Start relay-starter-kit, see it works.\r\n6. Start GraphiQL example, see it uses relay-starter-kit data.\r\n\r\nGoes hand-in-hand with https://github.com/relayjs/relay-starter-kit/pull/20, which is needed to do a query from `localhost:8081` (GraphiQL example)  to `localhost:8080` (relay-starter-kit data)"},"comment":{"url":"https://api.github.com/repos/graphql/graphiql/issues/comments/136043568","html_url":"https://github.com/graphql/graphiql/pull/20#issuecomment-136043568","issue_url":"https://api.github.com/repos/graphql/graphiql/issues/20","id":136043568,"user":{"login":"fson","id":497214,"avatar_url":"https://avatars.githubusercontent.com/u/497214?v=3","gravatar_id":"","url":"https://api.github.com/users/fson","html_url":"https://github.com/fson","followers_url":"https://api.github.com/users/fson/followers","following_url":"https://api.github.com/users/fson/following{/other_user}","gists_url":"https://api.github.com/users/fson/gists{/gist_id}","starred_url":"https://api.github.com/users/fson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fson/subscriptions","organizations_url":"https://api.github.com/users/fson/orgs","repos_url":"https://api.github.com/users/fson/repos","events_url":"https://api.github.com/users/fson/events{/privacy}","received_events_url":"https://api.github.com/users/fson/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T20:19:17Z","updated_at":"2015-08-29T20:19:17Z","body":"@LegNeato I took a stab adding GraphiQL in the starter kit here: https://github.com/relayjs/relay-starter-kit/pull/22"}}