{"action":"created","comment":{"url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/comments/77651951","id":77651951,"diff_hunk":"@@ -0,0 +1,31 @@\n+const Hapi = require('hapi');\n+const Hoek = require('hoek');\n+\n+// plugins\n+const Vision = require('vision');\n+const HapiRedisConnection = require('hapi-redis-connection');\n+\n+const path = require('path');\n+const handlebars = require('handlebars');\n+\n+const routes = require('./routes.js');\n+const server = new Hapi.Server();\n+\n+server.connection({ port: 3000 });\n+\n+server.register([Vision, HapiRedisConnection], err => {\n+  Hoek.assert(!err, err);\n+\n+  server.views({\n+    engines: {\n+      html: handlebars\n+    },\n+    relativeTo: path.resolve(__dirname, '..'),\n+    path: './templates/views',\n+    helpersPath: './templates/helpers'\n+  });\n+});\n+\n+server.route(routes);","path":"server/server.js","position":29,"original_position":29,"commit_id":"e56db698fd9e67bb7cf252c49d82403456183998","original_commit_id":"e56db698fd9e67bb7cf252c49d82403456183998","user":{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false},"body":"#95","created_at":"2016-09-06T14:58:03Z","updated_at":"2016-09-06T14:58:03Z","html_url":"https://github.com/emfoundation/ce100-app/pull/64#discussion_r77651951","pull_request_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/comments/77651951"},"html":{"href":"https://github.com/emfoundation/ce100-app/pull/64#discussion_r77651951"},"pull_request":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64","id":82083498,"html_url":"https://github.com/emfoundation/ce100-app/pull/64","diff_url":"https://github.com/emfoundation/ce100-app/pull/64.diff","patch_url":"https://github.com/emfoundation/ce100-app/pull/64.patch","issue_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/64","number":64,"state":"open","locked":false,"title":"Refactor add tests","user":{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false},"body":"@mk4111 I don't know how to add comments to a branch so opened a PR.\r\n\r\n- Small refactor handlers\r\n- Add tests to the endpoints we worked on on friday \r\n\r\n~~(not passing when all run together but fine when run in isolation. Couldn't see why?)~~\r\n\r\n# READY FOR REVIEW - PLEASE MERGE IN AFTER PR #82 ","created_at":"2016-08-20T16:51:36Z","updated_at":"2016-09-06T14:58:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2284dba65ad0e1983de6527633535f5709b310bf","assignee":{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false},"assignees":[{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64/commits","review_comments_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64/comments","review_comment_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/64/comments","statuses_url":"https://api.github.com/repos/emfoundation/ce100-app/statuses/e56db698fd9e67bb7cf252c49d82403456183998","head":{"label":"emfoundation:refactor-add-tests","ref":"refactor-add-tests","sha":"e56db698fd9e67bb7cf252c49d82403456183998","user":{"login":"emfoundation","id":20575658,"avatar_url":"https://avatars.githubusercontent.com/u/20575658?v=3","gravatar_id":"","url":"https://api.github.com/users/emfoundation","html_url":"https://github.com/emfoundation","followers_url":"https://api.github.com/users/emfoundation/followers","following_url":"https://api.github.com/users/emfoundation/following{/other_user}","gists_url":"https://api.github.com/users/emfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/emfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfoundation/subscriptions","organizations_url":"https://api.github.com/users/emfoundation/orgs","repos_url":"https://api.github.com/users/emfoundation/repos","events_url":"https://api.github.com/users/emfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/emfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":63855092,"name":"ce100-app","full_name":"emfoundation/ce100-app","owner":{"login":"emfoundation","id":20575658,"avatar_url":"https://avatars.githubusercontent.com/u/20575658?v=3","gravatar_id":"","url":"https://api.github.com/users/emfoundation","html_url":"https://github.com/emfoundation","followers_url":"https://api.github.com/users/emfoundation/followers","following_url":"https://api.github.com/users/emfoundation/following{/other_user}","gists_url":"https://api.github.com/users/emfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/emfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfoundation/subscriptions","organizations_url":"https://api.github.com/users/emfoundation/orgs","repos_url":"https://api.github.com/users/emfoundation/repos","events_url":"https://api.github.com/users/emfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/emfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emfoundation/ce100-app","description":"A networking, knowledge sharing and collaboration platform for the Circular Economy 100 network, an Ellen MacArthur Foundation programme.","fork":false,"url":"https://api.github.com/repos/emfoundation/ce100-app","forks_url":"https://api.github.com/repos/emfoundation/ce100-app/forks","keys_url":"https://api.github.com/repos/emfoundation/ce100-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emfoundation/ce100-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emfoundation/ce100-app/teams","hooks_url":"https://api.github.com/repos/emfoundation/ce100-app/hooks","issue_events_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/events{/number}","events_url":"https://api.github.com/repos/emfoundation/ce100-app/events","assignees_url":"https://api.github.com/repos/emfoundation/ce100-app/assignees{/user}","branches_url":"https://api.github.com/repos/emfoundation/ce100-app/branches{/branch}","tags_url":"https://api.github.com/repos/emfoundation/ce100-app/tags","blobs_url":"https://api.github.com/repos/emfoundation/ce100-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emfoundation/ce100-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emfoundation/ce100-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/emfoundation/ce100-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emfoundation/ce100-app/statuses/{sha}","languages_url":"https://api.github.com/repos/emfoundation/ce100-app/languages","stargazers_url":"https://api.github.com/repos/emfoundation/ce100-app/stargazers","contributors_url":"https://api.github.com/repos/emfoundation/ce100-app/contributors","subscribers_url":"https://api.github.com/repos/emfoundation/ce100-app/subscribers","subscription_url":"https://api.github.com/repos/emfoundation/ce100-app/subscription","commits_url":"https://api.github.com/repos/emfoundation/ce100-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/emfoundation/ce100-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/emfoundation/ce100-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/emfoundation/ce100-app/contents/{+path}","compare_url":"https://api.github.com/repos/emfoundation/ce100-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emfoundation/ce100-app/merges","archive_url":"https://api.github.com/repos/emfoundation/ce100-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emfoundation/ce100-app/downloads","issues_url":"https://api.github.com/repos/emfoundation/ce100-app/issues{/number}","pulls_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls{/number}","milestones_url":"https://api.github.com/repos/emfoundation/ce100-app/milestones{/number}","notifications_url":"https://api.github.com/repos/emfoundation/ce100-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emfoundation/ce100-app/labels{/name}","releases_url":"https://api.github.com/repos/emfoundation/ce100-app/releases{/id}","deployments_url":"https://api.github.com/repos/emfoundation/ce100-app/deployments","created_at":"2016-07-21T09:17:10Z","updated_at":"2016-09-06T13:46:14Z","pushed_at":"2016-09-06T13:46:15Z","git_url":"git://github.com/emfoundation/ce100-app.git","ssh_url":"git@github.com:emfoundation/ce100-app.git","clone_url":"https://github.com/emfoundation/ce100-app.git","svn_url":"https://github.com/emfoundation/ce100-app","homepage":null,"size":154,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":76,"forks":0,"open_issues":76,"watchers":6,"default_branch":"master"}},"base":{"label":"emfoundation:master","ref":"master","sha":"ec87ec8d66bb7e2598b493246325b270bce83c35","user":{"login":"emfoundation","id":20575658,"avatar_url":"https://avatars.githubusercontent.com/u/20575658?v=3","gravatar_id":"","url":"https://api.github.com/users/emfoundation","html_url":"https://github.com/emfoundation","followers_url":"https://api.github.com/users/emfoundation/followers","following_url":"https://api.github.com/users/emfoundation/following{/other_user}","gists_url":"https://api.github.com/users/emfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/emfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfoundation/subscriptions","organizations_url":"https://api.github.com/users/emfoundation/orgs","repos_url":"https://api.github.com/users/emfoundation/repos","events_url":"https://api.github.com/users/emfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/emfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":63855092,"name":"ce100-app","full_name":"emfoundation/ce100-app","owner":{"login":"emfoundation","id":20575658,"avatar_url":"https://avatars.githubusercontent.com/u/20575658?v=3","gravatar_id":"","url":"https://api.github.com/users/emfoundation","html_url":"https://github.com/emfoundation","followers_url":"https://api.github.com/users/emfoundation/followers","following_url":"https://api.github.com/users/emfoundation/following{/other_user}","gists_url":"https://api.github.com/users/emfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/emfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emfoundation/subscriptions","organizations_url":"https://api.github.com/users/emfoundation/orgs","repos_url":"https://api.github.com/users/emfoundation/repos","events_url":"https://api.github.com/users/emfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/emfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emfoundation/ce100-app","description":"A networking, knowledge sharing and collaboration platform for the Circular Economy 100 network, an Ellen MacArthur Foundation programme.","fork":false,"url":"https://api.github.com/repos/emfoundation/ce100-app","forks_url":"https://api.github.com/repos/emfoundation/ce100-app/forks","keys_url":"https://api.github.com/repos/emfoundation/ce100-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emfoundation/ce100-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emfoundation/ce100-app/teams","hooks_url":"https://api.github.com/repos/emfoundation/ce100-app/hooks","issue_events_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/events{/number}","events_url":"https://api.github.com/repos/emfoundation/ce100-app/events","assignees_url":"https://api.github.com/repos/emfoundation/ce100-app/assignees{/user}","branches_url":"https://api.github.com/repos/emfoundation/ce100-app/branches{/branch}","tags_url":"https://api.github.com/repos/emfoundation/ce100-app/tags","blobs_url":"https://api.github.com/repos/emfoundation/ce100-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emfoundation/ce100-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emfoundation/ce100-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/emfoundation/ce100-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emfoundation/ce100-app/statuses/{sha}","languages_url":"https://api.github.com/repos/emfoundation/ce100-app/languages","stargazers_url":"https://api.github.com/repos/emfoundation/ce100-app/stargazers","contributors_url":"https://api.github.com/repos/emfoundation/ce100-app/contributors","subscribers_url":"https://api.github.com/repos/emfoundation/ce100-app/subscribers","subscription_url":"https://api.github.com/repos/emfoundation/ce100-app/subscription","commits_url":"https://api.github.com/repos/emfoundation/ce100-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/emfoundation/ce100-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/emfoundation/ce100-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/emfoundation/ce100-app/contents/{+path}","compare_url":"https://api.github.com/repos/emfoundation/ce100-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emfoundation/ce100-app/merges","archive_url":"https://api.github.com/repos/emfoundation/ce100-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emfoundation/ce100-app/downloads","issues_url":"https://api.github.com/repos/emfoundation/ce100-app/issues{/number}","pulls_url":"https://api.github.com/repos/emfoundation/ce100-app/pulls{/number}","milestones_url":"https://api.github.com/repos/emfoundation/ce100-app/milestones{/number}","notifications_url":"https://api.github.com/repos/emfoundation/ce100-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emfoundation/ce100-app/labels{/name}","releases_url":"https://api.github.com/repos/emfoundation/ce100-app/releases{/id}","deployments_url":"https://api.github.com/repos/emfoundation/ce100-app/deployments","created_at":"2016-07-21T09:17:10Z","updated_at":"2016-09-06T13:46:14Z","pushed_at":"2016-09-06T13:46:15Z","git_url":"git://github.com/emfoundation/ce100-app.git","ssh_url":"git@github.com:emfoundation/ce100-app.git","clone_url":"https://github.com/emfoundation/ce100-app.git","svn_url":"https://github.com/emfoundation/ce100-app","homepage":null,"size":154,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":76,"forks":0,"open_issues":76,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64"},"html":{"href":"https://github.com/emfoundation/ce100-app/pull/64"},"issue":{"href":"https://api.github.com/repos/emfoundation/ce100-app/issues/64"},"comments":{"href":"https://api.github.com/repos/emfoundation/ce100-app/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emfoundation/ce100-app/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/emfoundation/ce100-app/statuses/e56db698fd9e67bb7cf252c49d82403456183998"}}}}
{"actor":{"display_login":"JMurphyWeb"}}