{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/comments/107717196","pull_request_review_id":28706086,"id":107717196,"diff_hunk":"@@ -4,17 +4,23 @@\n \n // TODO: Require the Express package that you installed via NPM, and instantiate the app\n // Remember to install express, and be sure that it's been added to your package.json as a dependency\n-\n+const express = require('express');\n+const app = express();\n const PORT = process.env.PORT || 3000;\n \n // TODO: Include all of the static resources as an argument to app.use()\n-\n+app.use(express.static('./public'));\n app.get('*', function(request, response) {\n+  response.sendFile('public/index.html', {root: '.'});","path":"starter-code/server.js","position":13,"original_position":13,"commit_id":"0a66ad3e73f0179ba254f531b3533147e10f378e","original_commit_id":"0a66ad3e73f0179ba254f531b3533147e10f378e","user":{"login":"JudyVue","id":10988169,"avatar_url":"https://avatars3.githubusercontent.com/u/10988169?v=3","gravatar_id":"","url":"https://api.github.com/users/JudyVue","html_url":"https://github.com/JudyVue","followers_url":"https://api.github.com/users/JudyVue/followers","following_url":"https://api.github.com/users/JudyVue/following{/other_user}","gists_url":"https://api.github.com/users/JudyVue/gists{/gist_id}","starred_url":"https://api.github.com/users/JudyVue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JudyVue/subscriptions","organizations_url":"https://api.github.com/users/JudyVue/orgs","repos_url":"https://api.github.com/users/JudyVue/repos","events_url":"https://api.github.com/users/JudyVue/events{/privacy}","received_events_url":"https://api.github.com/users/JudyVue/received_events","type":"User","site_admin":false},"body":"**TODO FOR LOST POINTS**\r\n\r\nClose, but not quite there. One Line 12, you've already sent a message to the client telling them to use all static resources located in the ``public`` folder. \r\n\r\nTherefore, when you are doing any ``app.get`` methods, your  ``root`` is already going to be in your ``public`` folder, therefore, your path name will be different than what you wrote in Line 14.\r\n\r\nThe blog still displays properly, but that's only because Line 12 already helps with displaying the blog.  ","created_at":"2017-03-23T16:30:29Z","updated_at":"2017-03-23T16:30:29Z","html_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8#discussion_r107717196","pull_request_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/comments/107717196"},"html":{"href":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8#discussion_r107717196"},"pull_request":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8","id":112134782,"html_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8","diff_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8.diff","patch_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8.patch","issue_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/8","number":8,"state":"open","locked":false,"title":"Erik-Kevin","user":{"login":"endere","id":25488932,"avatar_url":"https://avatars0.githubusercontent.com/u/25488932?v=3","gravatar_id":"","url":"https://api.github.com/users/endere","html_url":"https://github.com/endere","followers_url":"https://api.github.com/users/endere/followers","following_url":"https://api.github.com/users/endere/following{/other_user}","gists_url":"https://api.github.com/users/endere/gists{/gist_id}","starred_url":"https://api.github.com/users/endere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endere/subscriptions","organizations_url":"https://api.github.com/users/endere/orgs","repos_url":"https://api.github.com/users/endere/repos","events_url":"https://api.github.com/users/endere/events{/privacy}","received_events_url":"https://api.github.com/users/endere/received_events","type":"User","site_admin":false},"body":"#### Single-line Summary\r\n**Today, Erik and Kevin paired together. It took about 15 minutes**\r\n\r\n#### Reflect and summarize on your process for each `TODO` item :  \r\n  1. First, we started on setting up the server in terminal.\r\n  2. Next, we instantiated the express app.\r\n  3. Then we wrote server responses for index.html and new.html\r\n  4. then we made a console log for the terminal that linked to whatever the port was (not just a string that said 3000).\r\n\r\n#### Checklist (before submitting, fill in each set of square brackets with an 'x')\r\n- [x] We have titled the Pull Request similar to our branch name (ex: 'brian-rick'). \r\n- [x] This PR includes commits from both myself and my partner; e.g. We followed good pair programming practices by switching driver/navigator roles.\r\n- [x] There is no extraneous, unrelated code included in this PR.\r\n- [x] We have summarized our `TODO:` process above.\r\n","created_at":"2017-03-22T23:42:30Z","updated_at":"2017-03-23T16:30:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"526b5a64e0f562121f6b758e00ecc646e15f9437","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8/commits","review_comments_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8/comments","review_comment_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/8/comments","statuses_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/statuses/0a66ad3e73f0179ba254f531b3533147e10f378e","head":{"label":"endere:master","ref":"master","sha":"0a66ad3e73f0179ba254f531b3533147e10f378e","user":{"login":"endere","id":25488932,"avatar_url":"https://avatars0.githubusercontent.com/u/25488932?v=3","gravatar_id":"","url":"https://api.github.com/users/endere","html_url":"https://github.com/endere","followers_url":"https://api.github.com/users/endere/followers","following_url":"https://api.github.com/users/endere/following{/other_user}","gists_url":"https://api.github.com/users/endere/gists{/gist_id}","starred_url":"https://api.github.com/users/endere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endere/subscriptions","organizations_url":"https://api.github.com/users/endere/orgs","repos_url":"https://api.github.com/users/endere/repos","events_url":"https://api.github.com/users/endere/events{/privacy}","received_events_url":"https://api.github.com/users/endere/received_events","type":"User","site_admin":false},"repo":{"id":85885318,"name":"07-nodejs-npm","full_name":"endere/07-nodejs-npm","owner":{"login":"endere","id":25488932,"avatar_url":"https://avatars0.githubusercontent.com/u/25488932?v=3","gravatar_id":"","url":"https://api.github.com/users/endere","html_url":"https://github.com/endere","followers_url":"https://api.github.com/users/endere/followers","following_url":"https://api.github.com/users/endere/following{/other_user}","gists_url":"https://api.github.com/users/endere/gists{/gist_id}","starred_url":"https://api.github.com/users/endere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endere/subscriptions","organizations_url":"https://api.github.com/users/endere/orgs","repos_url":"https://api.github.com/users/endere/repos","events_url":"https://api.github.com/users/endere/events{/privacy}","received_events_url":"https://api.github.com/users/endere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/endere/07-nodejs-npm","description":"Let's refactor our blog app to run in a Node environment, using NPM and Express!","fork":true,"url":"https://api.github.com/repos/endere/07-nodejs-npm","forks_url":"https://api.github.com/repos/endere/07-nodejs-npm/forks","keys_url":"https://api.github.com/repos/endere/07-nodejs-npm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endere/07-nodejs-npm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endere/07-nodejs-npm/teams","hooks_url":"https://api.github.com/repos/endere/07-nodejs-npm/hooks","issue_events_url":"https://api.github.com/repos/endere/07-nodejs-npm/issues/events{/number}","events_url":"https://api.github.com/repos/endere/07-nodejs-npm/events","assignees_url":"https://api.github.com/repos/endere/07-nodejs-npm/assignees{/user}","branches_url":"https://api.github.com/repos/endere/07-nodejs-npm/branches{/branch}","tags_url":"https://api.github.com/repos/endere/07-nodejs-npm/tags","blobs_url":"https://api.github.com/repos/endere/07-nodejs-npm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endere/07-nodejs-npm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endere/07-nodejs-npm/git/refs{/sha}","trees_url":"https://api.github.com/repos/endere/07-nodejs-npm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endere/07-nodejs-npm/statuses/{sha}","languages_url":"https://api.github.com/repos/endere/07-nodejs-npm/languages","stargazers_url":"https://api.github.com/repos/endere/07-nodejs-npm/stargazers","contributors_url":"https://api.github.com/repos/endere/07-nodejs-npm/contributors","subscribers_url":"https://api.github.com/repos/endere/07-nodejs-npm/subscribers","subscription_url":"https://api.github.com/repos/endere/07-nodejs-npm/subscription","commits_url":"https://api.github.com/repos/endere/07-nodejs-npm/commits{/sha}","git_commits_url":"https://api.github.com/repos/endere/07-nodejs-npm/git/commits{/sha}","comments_url":"https://api.github.com/repos/endere/07-nodejs-npm/comments{/number}","issue_comment_url":"https://api.github.com/repos/endere/07-nodejs-npm/issues/comments{/number}","contents_url":"https://api.github.com/repos/endere/07-nodejs-npm/contents/{+path}","compare_url":"https://api.github.com/repos/endere/07-nodejs-npm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endere/07-nodejs-npm/merges","archive_url":"https://api.github.com/repos/endere/07-nodejs-npm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endere/07-nodejs-npm/downloads","issues_url":"https://api.github.com/repos/endere/07-nodejs-npm/issues{/number}","pulls_url":"https://api.github.com/repos/endere/07-nodejs-npm/pulls{/number}","milestones_url":"https://api.github.com/repos/endere/07-nodejs-npm/milestones{/number}","notifications_url":"https://api.github.com/repos/endere/07-nodejs-npm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endere/07-nodejs-npm/labels{/name}","releases_url":"https://api.github.com/repos/endere/07-nodejs-npm/releases{/id}","deployments_url":"https://api.github.com/repos/endere/07-nodejs-npm/deployments","created_at":"2017-03-22T23:14:42Z","updated_at":"2017-03-22T23:14:44Z","pushed_at":"2017-03-22T23:39:46Z","git_url":"git://github.com/endere/07-nodejs-npm.git","ssh_url":"git@github.com:endere/07-nodejs-npm.git","clone_url":"https://github.com/endere/07-nodejs-npm.git","svn_url":"https://github.com/endere/07-nodejs-npm","homepage":null,"size":424,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codefellows-seattle-301d18:master","ref":"master","sha":"b57f2638e9c02dbd870f13ea4719785e948955c5","user":{"login":"codefellows-seattle-301d18","id":26014495,"avatar_url":"https://avatars1.githubusercontent.com/u/26014495?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-301d18","html_url":"https://github.com/codefellows-seattle-301d18","followers_url":"https://api.github.com/users/codefellows-seattle-301d18/followers","following_url":"https://api.github.com/users/codefellows-seattle-301d18/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-301d18/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-301d18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-301d18/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-301d18/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-301d18/repos","events_url":"https://api.github.com/users/codefellows-seattle-301d18/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-301d18/received_events","type":"Organization","site_admin":false},"repo":{"id":85513546,"name":"07-nodejs-npm","full_name":"codefellows-seattle-301d18/07-nodejs-npm","owner":{"login":"codefellows-seattle-301d18","id":26014495,"avatar_url":"https://avatars1.githubusercontent.com/u/26014495?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-301d18","html_url":"https://github.com/codefellows-seattle-301d18","followers_url":"https://api.github.com/users/codefellows-seattle-301d18/followers","following_url":"https://api.github.com/users/codefellows-seattle-301d18/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-301d18/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-301d18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-301d18/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-301d18/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-301d18/repos","events_url":"https://api.github.com/users/codefellows-seattle-301d18/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-301d18/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm","description":"Let's refactor our blog app to run in a Node environment, using NPM and Express!","fork":false,"url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm","forks_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/forks","keys_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/teams","hooks_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/hooks","issue_events_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/events","assignees_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/tags","blobs_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/languages","stargazers_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/stargazers","contributors_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/contributors","subscribers_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/subscribers","subscription_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/subscription","commits_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/merges","archive_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/downloads","issues_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/deployments","created_at":"2017-03-19T22:28:47Z","updated_at":"2017-03-22T23:12:16Z","pushed_at":"2017-03-23T00:42:27Z","git_url":"git://github.com/codefellows-seattle-301d18/07-nodejs-npm.git","ssh_url":"git@github.com:codefellows-seattle-301d18/07-nodejs-npm.git","clone_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm.git","svn_url":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm","homepage":null,"size":422,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":14,"forks":14,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8"},"html":{"href":"https://github.com/codefellows-seattle-301d18/07-nodejs-npm/pull/8"},"issue":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/8"},"comments":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-seattle-301d18/07-nodejs-npm/statuses/0a66ad3e73f0179ba254f531b3533147e10f378e"}}}}
{"actor":{"display_login":"JudyVue"}}