{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular-cli/pulls/comments/79844012","id":79844012,"diff_hunk":"@@ -186,6 +187,33 @@ Before running the tests make sure you are serving the app via `ng serve`.\n \n End-to-end tests are run via [Protractor](https://angular.github.io/protractor/).\n \n+### Proxy To Backend\n+Using the proxying support in webpack's dev server we can highjack certain urls and send them to a backend server.\n+We do this by passing a file to `--proxy-config`\n+\n+Say we have a server running on `http://localhost:3000/api` and we want all calls th `http://localhost:4200/api` to go to that server.\n+","path":"README.md","position":17,"original_position":17,"commit_id":"0688df03c219f366e66bd346faafacc82ddb54ad","original_commit_id":"0688df03c219f366e66bd346faafacc82ddb54ad","user":{"login":"mrgoos","id":2561935,"avatar_url":"https://avatars.githubusercontent.com/u/2561935?v=3","gravatar_id":"","url":"https://api.github.com/users/mrgoos","html_url":"https://github.com/mrgoos","followers_url":"https://api.github.com/users/mrgoos/followers","following_url":"https://api.github.com/users/mrgoos/following{/other_user}","gists_url":"https://api.github.com/users/mrgoos/gists{/gist_id}","starred_url":"https://api.github.com/users/mrgoos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrgoos/subscriptions","organizations_url":"https://api.github.com/users/mrgoos/orgs","repos_url":"https://api.github.com/users/mrgoos/repos","events_url":"https://api.github.com/users/mrgoos/events{/privacy}","received_events_url":"https://api.github.com/users/mrgoos/received_events","type":"User","site_admin":false},"body":"`th` = `to`.\r\n\r\nThanks for the documentation!","created_at":"2016-09-21T14:19:31Z","updated_at":"2016-09-21T14:19:31Z","html_url":"https://github.com/angular/angular-cli/pull/1896#discussion_r79844012","pull_request_url":"https://api.github.com/repos/angular/angular-cli/pulls/1896","_links":{"self":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/comments/79844012"},"html":{"href":"https://github.com/angular/angular-cli/pull/1896#discussion_r79844012"},"pull_request":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1896"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular-cli/pulls/1896","id":83272935,"html_url":"https://github.com/angular/angular-cli/pull/1896","diff_url":"https://github.com/angular/angular-cli/pull/1896.diff","patch_url":"https://github.com/angular/angular-cli/pull/1896.patch","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/1896","number":1896,"state":"open","locked":false,"title":"proxy-config documentation","user":{"login":"leon","id":13211,"avatar_url":"https://avatars.githubusercontent.com/u/13211?v=3","gravatar_id":"","url":"https://api.github.com/users/leon","html_url":"https://github.com/leon","followers_url":"https://api.github.com/users/leon/followers","following_url":"https://api.github.com/users/leon/following{/other_user}","gists_url":"https://api.github.com/users/leon/gists{/gist_id}","starred_url":"https://api.github.com/users/leon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon/subscriptions","organizations_url":"https://api.github.com/users/leon/orgs","repos_url":"https://api.github.com/users/leon/repos","events_url":"https://api.github.com/users/leon/events{/privacy}","received_events_url":"https://api.github.com/users/leon/received_events","type":"User","site_admin":false},"body":"documentation on how to use `--proxy-config`","created_at":"2016-08-30T13:39:23Z","updated_at":"2016-09-21T14:19:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78914cbfa61456ddf6fd6f50ebbb72a7d5583759","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular-cli/pulls/1896/commits","review_comments_url":"https://api.github.com/repos/angular/angular-cli/pulls/1896/comments","review_comment_url":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/1896/comments","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/0688df03c219f366e66bd346faafacc82ddb54ad","head":{"label":"leon:master","ref":"master","sha":"0688df03c219f366e66bd346faafacc82ddb54ad","user":{"login":"leon","id":13211,"avatar_url":"https://avatars.githubusercontent.com/u/13211?v=3","gravatar_id":"","url":"https://api.github.com/users/leon","html_url":"https://github.com/leon","followers_url":"https://api.github.com/users/leon/followers","following_url":"https://api.github.com/users/leon/following{/other_user}","gists_url":"https://api.github.com/users/leon/gists{/gist_id}","starred_url":"https://api.github.com/users/leon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon/subscriptions","organizations_url":"https://api.github.com/users/leon/orgs","repos_url":"https://api.github.com/users/leon/repos","events_url":"https://api.github.com/users/leon/events{/privacy}","received_events_url":"https://api.github.com/users/leon/received_events","type":"User","site_admin":false},"repo":{"id":66942711,"name":"angular-cli","full_name":"leon/angular-cli","owner":{"login":"leon","id":13211,"avatar_url":"https://avatars.githubusercontent.com/u/13211?v=3","gravatar_id":"","url":"https://api.github.com/users/leon","html_url":"https://github.com/leon","followers_url":"https://api.github.com/users/leon/followers","following_url":"https://api.github.com/users/leon/following{/other_user}","gists_url":"https://api.github.com/users/leon/gists{/gist_id}","starred_url":"https://api.github.com/users/leon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon/subscriptions","organizations_url":"https://api.github.com/users/leon/orgs","repos_url":"https://api.github.com/users/leon/repos","events_url":"https://api.github.com/users/leon/events{/privacy}","received_events_url":"https://api.github.com/users/leon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leon/angular-cli","description":"CLI tool for Angular2","fork":true,"url":"https://api.github.com/repos/leon/angular-cli","forks_url":"https://api.github.com/repos/leon/angular-cli/forks","keys_url":"https://api.github.com/repos/leon/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leon/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leon/angular-cli/teams","hooks_url":"https://api.github.com/repos/leon/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/leon/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/leon/angular-cli/events","assignees_url":"https://api.github.com/repos/leon/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/leon/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/leon/angular-cli/tags","blobs_url":"https://api.github.com/repos/leon/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leon/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leon/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/leon/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leon/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/leon/angular-cli/languages","stargazers_url":"https://api.github.com/repos/leon/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/leon/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/leon/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/leon/angular-cli/subscription","commits_url":"https://api.github.com/repos/leon/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/leon/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/leon/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/leon/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/leon/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/leon/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leon/angular-cli/merges","archive_url":"https://api.github.com/repos/leon/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leon/angular-cli/downloads","issues_url":"https://api.github.com/repos/leon/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/leon/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/leon/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/leon/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leon/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/leon/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/leon/angular-cli/deployments","created_at":"2016-08-30T13:24:19Z","updated_at":"2016-08-30T13:24:20Z","pushed_at":"2016-09-19T08:13:42Z","git_url":"git://github.com/leon/angular-cli.git","ssh_url":"git@github.com:leon/angular-cli.git","clone_url":"https://github.com/leon/angular-cli.git","svn_url":"https://github.com/leon/angular-cli","homepage":"","size":1526,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"angular:master","ref":"master","sha":"7150cf9cac6b0bb7daea8a709c473b37498906af","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":36891867,"name":"angular-cli","full_name":"angular/angular-cli","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular-cli","description":"CLI tool for Angular2","fork":false,"url":"https://api.github.com/repos/angular/angular-cli","forks_url":"https://api.github.com/repos/angular/angular-cli/forks","keys_url":"https://api.github.com/repos/angular/angular-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular-cli/teams","hooks_url":"https://api.github.com/repos/angular/angular-cli/hooks","issue_events_url":"https://api.github.com/repos/angular/angular-cli/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular-cli/events","assignees_url":"https://api.github.com/repos/angular/angular-cli/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular-cli/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular-cli/tags","blobs_url":"https://api.github.com/repos/angular/angular-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular-cli/languages","stargazers_url":"https://api.github.com/repos/angular/angular-cli/stargazers","contributors_url":"https://api.github.com/repos/angular/angular-cli/contributors","subscribers_url":"https://api.github.com/repos/angular/angular-cli/subscribers","subscription_url":"https://api.github.com/repos/angular/angular-cli/subscription","commits_url":"https://api.github.com/repos/angular/angular-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular-cli/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular-cli/merges","archive_url":"https://api.github.com/repos/angular/angular-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular-cli/downloads","issues_url":"https://api.github.com/repos/angular/angular-cli/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular-cli/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular-cli/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular-cli/deployments","created_at":"2015-06-04T19:49:37Z","updated_at":"2016-09-21T14:08:54Z","pushed_at":"2016-09-21T11:38:17Z","git_url":"git://github.com/angular/angular-cli.git","ssh_url":"git@github.com:angular/angular-cli.git","clone_url":"https://github.com/angular/angular-cli.git","svn_url":"https://github.com/angular/angular-cli","homepage":"","size":3532,"stargazers_count":3783,"watchers_count":3783,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":577,"mirror_url":null,"open_issues_count":330,"forks":577,"open_issues":330,"watchers":3783,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1896"},"html":{"href":"https://github.com/angular/angular-cli/pull/1896"},"issue":{"href":"https://api.github.com/repos/angular/angular-cli/issues/1896"},"comments":{"href":"https://api.github.com/repos/angular/angular-cli/issues/1896/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1896/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular-cli/pulls/1896/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular-cli/statuses/0688df03c219f366e66bd346faafacc82ddb54ad"}}}}
{"actor":{"display_login":"mrgoos"}}