{"action":"opened","number":117,"pull_request":{"url":"https://api.github.com/repos/lore/lore/pulls/117","id":78042694,"html_url":"https://github.com/lore/lore/pull/117","diff_url":"https://github.com/lore/lore/pull/117.diff","patch_url":"https://github.com/lore/lore/pull/117.patch","issue_url":"https://api.github.com/repos/lore/lore/issues/117","number":117,"state":"open","locked":false,"title":"Update examples to use new connect interface, replace faux-server with json-server","user":{"login":"jchansen","id":2637399,"avatar_url":"https://avatars.githubusercontent.com/u/2637399?v=3","gravatar_id":"","url":"https://api.github.com/users/jchansen","html_url":"https://github.com/jchansen","followers_url":"https://api.github.com/users/jchansen/followers","following_url":"https://api.github.com/users/jchansen/following{/other_user}","gists_url":"https://api.github.com/users/jchansen/gists{/gist_id}","starred_url":"https://api.github.com/users/jchansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchansen/subscriptions","organizations_url":"https://api.github.com/users/jchansen/orgs","repos_url":"https://api.github.com/users/jchansen/repos","events_url":"https://api.github.com/users/jchansen/events{/privacy}","received_events_url":"https://api.github.com/users/jchansen/received_events","type":"User","site_admin":false},"body":"This PR updates the examples to work with the new ESNext compatible `lore.connect` interface from #116.\r\n\r\n### Faux-server replaced with json-server\r\nIt also replaces [faux-server](https://github.com/lore/faux-server) with [json-server](https://github.com/typicode/json-server) as the mock backend for the examples.\r\n\r\nInstead of using localStorage (faux-server) json-server uses a `db.json` file at the root of project, which makes it easy to add data, remove data, and view a snapshot of the \"database\" at any time. It can also watch the file for changes, and reload it, which can make for a pleasant development experience when you need to remove bad data, or simply remove data to test 404 uses cases.\r\n\r\n### Running the examples\r\nThe affected examples now require a three-step process to run them (previously a two-step process), though it's simple;\r\n\r\n```js\r\nnpm install\r\n\r\n// will start the API server on port 1337 by default\r\nnpm run server\r\n\r\n// will server the example from port 3000 by default\r\nnpm start\r\n```\r\n\r\nNow navigate to `http://localhost:3000` to view the example.","created_at":"2016-07-19T20:25:01Z","updated_at":"2016-07-19T20:25:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c19ebd8a5a8ab76c6a1f8f1dc491b4765e0aaee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lore/lore/pulls/117/commits","review_comments_url":"https://api.github.com/repos/lore/lore/pulls/117/comments","review_comment_url":"https://api.github.com/repos/lore/lore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lore/lore/issues/117/comments","statuses_url":"https://api.github.com/repos/lore/lore/statuses/6934d23f564fc2b30b0db17339e0b9ca71a0cb15","head":{"label":"lore:update-examples","ref":"update-examples","sha":"6934d23f564fc2b30b0db17339e0b9ca71a0cb15","user":{"login":"lore","id":17439604,"avatar_url":"https://avatars.githubusercontent.com/u/17439604?v=3","gravatar_id":"","url":"https://api.github.com/users/lore","html_url":"https://github.com/lore","followers_url":"https://api.github.com/users/lore/followers","following_url":"https://api.github.com/users/lore/following{/other_user}","gists_url":"https://api.github.com/users/lore/gists{/gist_id}","starred_url":"https://api.github.com/users/lore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lore/subscriptions","organizations_url":"https://api.github.com/users/lore/orgs","repos_url":"https://api.github.com/users/lore/repos","events_url":"https://api.github.com/users/lore/events{/privacy}","received_events_url":"https://api.github.com/users/lore/received_events","type":"Organization","site_admin":false},"repo":{"id":50279515,"name":"lore","full_name":"lore/lore","owner":{"login":"lore","id":17439604,"avatar_url":"https://avatars.githubusercontent.com/u/17439604?v=3","gravatar_id":"","url":"https://api.github.com/users/lore","html_url":"https://github.com/lore","followers_url":"https://api.github.com/users/lore/followers","following_url":"https://api.github.com/users/lore/following{/other_user}","gists_url":"https://api.github.com/users/lore/gists{/gist_id}","starred_url":"https://api.github.com/users/lore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lore/subscriptions","organizations_url":"https://api.github.com/users/lore/orgs","repos_url":"https://api.github.com/users/lore/repos","events_url":"https://api.github.com/users/lore/events{/privacy}","received_events_url":"https://api.github.com/users/lore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lore/lore","description":"Respectully opinionated convention-driven framework for building React applications. Built on React, Webpack, Redux, and React-Router.","fork":false,"url":"https://api.github.com/repos/lore/lore","forks_url":"https://api.github.com/repos/lore/lore/forks","keys_url":"https://api.github.com/repos/lore/lore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lore/lore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lore/lore/teams","hooks_url":"https://api.github.com/repos/lore/lore/hooks","issue_events_url":"https://api.github.com/repos/lore/lore/issues/events{/number}","events_url":"https://api.github.com/repos/lore/lore/events","assignees_url":"https://api.github.com/repos/lore/lore/assignees{/user}","branches_url":"https://api.github.com/repos/lore/lore/branches{/branch}","tags_url":"https://api.github.com/repos/lore/lore/tags","blobs_url":"https://api.github.com/repos/lore/lore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lore/lore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lore/lore/git/refs{/sha}","trees_url":"https://api.github.com/repos/lore/lore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lore/lore/statuses/{sha}","languages_url":"https://api.github.com/repos/lore/lore/languages","stargazers_url":"https://api.github.com/repos/lore/lore/stargazers","contributors_url":"https://api.github.com/repos/lore/lore/contributors","subscribers_url":"https://api.github.com/repos/lore/lore/subscribers","subscription_url":"https://api.github.com/repos/lore/lore/subscription","commits_url":"https://api.github.com/repos/lore/lore/commits{/sha}","git_commits_url":"https://api.github.com/repos/lore/lore/git/commits{/sha}","comments_url":"https://api.github.com/repos/lore/lore/comments{/number}","issue_comment_url":"https://api.github.com/repos/lore/lore/issues/comments{/number}","contents_url":"https://api.github.com/repos/lore/lore/contents/{+path}","compare_url":"https://api.github.com/repos/lore/lore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lore/lore/merges","archive_url":"https://api.github.com/repos/lore/lore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lore/lore/downloads","issues_url":"https://api.github.com/repos/lore/lore/issues{/number}","pulls_url":"https://api.github.com/repos/lore/lore/pulls{/number}","milestones_url":"https://api.github.com/repos/lore/lore/milestones{/number}","notifications_url":"https://api.github.com/repos/lore/lore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lore/lore/labels{/name}","releases_url":"https://api.github.com/repos/lore/lore/releases{/id}","deployments_url":"https://api.github.com/repos/lore/lore/deployments","created_at":"2016-01-24T08:42:15Z","updated_at":"2016-07-14T21:06:49Z","pushed_at":"2016-07-19T20:25:01Z","git_url":"git://github.com/lore/lore.git","ssh_url":"git@github.com:lore/lore.git","clone_url":"https://github.com/lore/lore.git","svn_url":"https://github.com/lore/lore","homepage":"http://www.lorejs.org","size":4653,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":19,"default_branch":"master"}},"base":{"label":"lore:master","ref":"master","sha":"94ee044c87662990df89e2f3af5609b23a2ee30a","user":{"login":"lore","id":17439604,"avatar_url":"https://avatars.githubusercontent.com/u/17439604?v=3","gravatar_id":"","url":"https://api.github.com/users/lore","html_url":"https://github.com/lore","followers_url":"https://api.github.com/users/lore/followers","following_url":"https://api.github.com/users/lore/following{/other_user}","gists_url":"https://api.github.com/users/lore/gists{/gist_id}","starred_url":"https://api.github.com/users/lore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lore/subscriptions","organizations_url":"https://api.github.com/users/lore/orgs","repos_url":"https://api.github.com/users/lore/repos","events_url":"https://api.github.com/users/lore/events{/privacy}","received_events_url":"https://api.github.com/users/lore/received_events","type":"Organization","site_admin":false},"repo":{"id":50279515,"name":"lore","full_name":"lore/lore","owner":{"login":"lore","id":17439604,"avatar_url":"https://avatars.githubusercontent.com/u/17439604?v=3","gravatar_id":"","url":"https://api.github.com/users/lore","html_url":"https://github.com/lore","followers_url":"https://api.github.com/users/lore/followers","following_url":"https://api.github.com/users/lore/following{/other_user}","gists_url":"https://api.github.com/users/lore/gists{/gist_id}","starred_url":"https://api.github.com/users/lore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lore/subscriptions","organizations_url":"https://api.github.com/users/lore/orgs","repos_url":"https://api.github.com/users/lore/repos","events_url":"https://api.github.com/users/lore/events{/privacy}","received_events_url":"https://api.github.com/users/lore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lore/lore","description":"Respectully opinionated convention-driven framework for building React applications. Built on React, Webpack, Redux, and React-Router.","fork":false,"url":"https://api.github.com/repos/lore/lore","forks_url":"https://api.github.com/repos/lore/lore/forks","keys_url":"https://api.github.com/repos/lore/lore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lore/lore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lore/lore/teams","hooks_url":"https://api.github.com/repos/lore/lore/hooks","issue_events_url":"https://api.github.com/repos/lore/lore/issues/events{/number}","events_url":"https://api.github.com/repos/lore/lore/events","assignees_url":"https://api.github.com/repos/lore/lore/assignees{/user}","branches_url":"https://api.github.com/repos/lore/lore/branches{/branch}","tags_url":"https://api.github.com/repos/lore/lore/tags","blobs_url":"https://api.github.com/repos/lore/lore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lore/lore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lore/lore/git/refs{/sha}","trees_url":"https://api.github.com/repos/lore/lore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lore/lore/statuses/{sha}","languages_url":"https://api.github.com/repos/lore/lore/languages","stargazers_url":"https://api.github.com/repos/lore/lore/stargazers","contributors_url":"https://api.github.com/repos/lore/lore/contributors","subscribers_url":"https://api.github.com/repos/lore/lore/subscribers","subscription_url":"https://api.github.com/repos/lore/lore/subscription","commits_url":"https://api.github.com/repos/lore/lore/commits{/sha}","git_commits_url":"https://api.github.com/repos/lore/lore/git/commits{/sha}","comments_url":"https://api.github.com/repos/lore/lore/comments{/number}","issue_comment_url":"https://api.github.com/repos/lore/lore/issues/comments{/number}","contents_url":"https://api.github.com/repos/lore/lore/contents/{+path}","compare_url":"https://api.github.com/repos/lore/lore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lore/lore/merges","archive_url":"https://api.github.com/repos/lore/lore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lore/lore/downloads","issues_url":"https://api.github.com/repos/lore/lore/issues{/number}","pulls_url":"https://api.github.com/repos/lore/lore/pulls{/number}","milestones_url":"https://api.github.com/repos/lore/lore/milestones{/number}","notifications_url":"https://api.github.com/repos/lore/lore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lore/lore/labels{/name}","releases_url":"https://api.github.com/repos/lore/lore/releases{/id}","deployments_url":"https://api.github.com/repos/lore/lore/deployments","created_at":"2016-01-24T08:42:15Z","updated_at":"2016-07-14T21:06:49Z","pushed_at":"2016-07-19T20:25:01Z","git_url":"git://github.com/lore/lore.git","ssh_url":"git@github.com:lore/lore.git","clone_url":"https://github.com/lore/lore.git","svn_url":"https://github.com/lore/lore","homepage":"http://www.lorejs.org","size":4653,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lore/lore/pulls/117"},"html":{"href":"https://github.com/lore/lore/pull/117"},"issue":{"href":"https://api.github.com/repos/lore/lore/issues/117"},"comments":{"href":"https://api.github.com/repos/lore/lore/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/lore/lore/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/lore/lore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lore/lore/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/lore/lore/statuses/6934d23f564fc2b30b0db17339e0b9ca71a0cb15"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":8,"additions":116,"deletions":102,"changed_files":26}}
{"actor":{"display_login":"jchansen"}}