{"action":"created","comment":{"url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/comments/215714983","pull_request_review_id":153042950,"id":215714983,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTcxNDk4Mw==","diff_hunk":"@@ -1,6 +1,9 @@\n import React from 'react';\n import { render } from 'react-dom';\n+import { BrowserRouter as Router } from 'react-router-dom';","path":"src/index.js","position":3,"original_position":3,"commit_id":"d9fa2932b1f8a0cd1d7b0ddc37253ffd663e31bd","original_commit_id":"d9fa2932b1f8a0cd1d7b0ddc37253ffd663e31bd","user":{"login":"rhenshaw56","id":25608386,"node_id":"MDQ6VXNlcjI1NjA4Mzg2","avatar_url":"https://avatars3.githubusercontent.com/u/25608386?v=4","gravatar_id":"","url":"https://api.github.com/users/rhenshaw56","html_url":"https://github.com/rhenshaw56","followers_url":"https://api.github.com/users/rhenshaw56/followers","following_url":"https://api.github.com/users/rhenshaw56/following{/other_user}","gists_url":"https://api.github.com/users/rhenshaw56/gists{/gist_id}","starred_url":"https://api.github.com/users/rhenshaw56/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhenshaw56/subscriptions","organizations_url":"https://api.github.com/users/rhenshaw56/orgs","repos_url":"https://api.github.com/users/rhenshaw56/repos","events_url":"https://api.github.com/users/rhenshaw56/events{/privacy}","received_events_url":"https://api.github.com/users/rhenshaw56/received_events","type":"User","site_admin":false},"body":"it ain't been used here","created_at":"2018-09-06T17:38:41Z","updated_at":"2018-09-06T17:42:40Z","html_url":"https://github.com/andela/rivendell-ah-client/pull/7#discussion_r215714983","pull_request_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/comments/215714983"},"html":{"href":"https://github.com/andela/rivendell-ah-client/pull/7#discussion_r215714983"},"pull_request":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7","id":212712049,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzEyMDQ5","html_url":"https://github.com/andela/rivendell-ah-client/pull/7","diff_url":"https://github.com/andela/rivendell-ah-client/pull/7.diff","patch_url":"https://github.com/andela/rivendell-ah-client/pull/7.patch","issue_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/7","number":7,"state":"open","locked":false,"title":"#160056369 Setup React Router","user":{"login":"JCanaks","id":26818808,"node_id":"MDQ6VXNlcjI2ODE4ODA4","avatar_url":"https://avatars0.githubusercontent.com/u/26818808?v=4","gravatar_id":"","url":"https://api.github.com/users/JCanaks","html_url":"https://github.com/JCanaks","followers_url":"https://api.github.com/users/JCanaks/followers","following_url":"https://api.github.com/users/JCanaks/following{/other_user}","gists_url":"https://api.github.com/users/JCanaks/gists{/gist_id}","starred_url":"https://api.github.com/users/JCanaks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCanaks/subscriptions","organizations_url":"https://api.github.com/users/JCanaks/orgs","repos_url":"https://api.github.com/users/JCanaks/repos","events_url":"https://api.github.com/users/JCanaks/events{/privacy}","received_events_url":"https://api.github.com/users/JCanaks/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt setups react router version 4 (React-router-dom) for this application\r\n#### Description of Task to be completed?\r\n- Create a new branch from the updated staging branch  and name according to task assigned\r\n- install react router dependencies\r\n- configure all key project routes\r\n- set up views/components folder structure for all route views and components\r\n- create dummy route components\r\n- configure authentication for all protected routes\r\n#### How should this be manually tested?\r\n- Clone the repository to get a local copy\r\n- Run `npm install` to install the necessary dependencies\r\n- Run `npm run dev` to start the app\r\n- Test the following routes \r\n  -  `/signup`- Home \r\n  -  `/login` - Login \r\n  -  `/articles` -All Articles of a user\r\n  - `/articles/:slug`- An article of a user\r\n  - `/articles/:new`- To create a new article (Authentication Required) \r\n  - `/articles/:slug/edit`- To edit an article(Authentication Required)\r\n  - `/@:username` - To get the profile of a user\r\n  - `/:username/edit` - To edit a user profile (Authentication Required)\r\n  - `/:username/following` - To view the users a person is following\r\n  - `/:username/followers` -  To view the followers of a user\r\n#### Any background context you want to provide?\r\nN/A\r\n#### What are the relevant pivotal tracker stories?\r\n#160056369\r\n#### Screenshots (if appropriate)\r\n**Sample screenshot of some routes** \r\n\r\n<img width=\"790\" alt=\"screen shot 2018-09-03 at 11 48 34 am\" src=\"https://user-images.githubusercontent.com/26818808/44983060-c4a24680-af6f-11e8-8fc7-836407681fd0.png\">\r\n<img width=\"516\" alt=\"screen shot 2018-09-03 at 11 49 02 am\" src=\"https://user-images.githubusercontent.com/26818808/44983061-c4a24680-af6f-11e8-86b4-0e5875b0cb18.png\">\r\n<img width=\"542\" alt=\"screen shot 2018-09-03 at 11 49 13 am\" src=\"https://user-images.githubusercontent.com/26818808/44983062-c4a24680-af6f-11e8-8d81-2c5b386fa814.png\">\r\n<img width=\"427\" alt=\"screen shot 2018-09-03 at 11 51 04 am\" src=\"https://user-images.githubusercontent.com/26818808/44983063-c4a24680-af6f-11e8-8a82-e60924916023.png\">\r\n<img width=\"569\" alt=\"screen shot 2018-09-03 at 11 51 28 am\" src=\"https://user-images.githubusercontent.com/26818808/44983065-c53add00-af6f-11e8-9456-5f6ac04d30db.png\">\r\n<img width=\"370\" alt=\"screen shot 2018-09-03 at 11 53 08 am\" src=\"https://user-images.githubusercontent.com/26818808/44983151-1fd43900-af70-11e8-84f5-d884e58d1b5c.png\">\r\n\r\n#### Questions:\r\nN/A","created_at":"2018-09-03T10:55:51Z","updated_at":"2018-09-06T17:42:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4eed15ff942af3f65d4d6b9a7c005f3fdbd67a9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7/commits","review_comments_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7/comments","review_comment_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/7/comments","statuses_url":"https://api.github.com/repos/andela/rivendell-ah-client/statuses/d9fa2932b1f8a0cd1d7b0ddc37253ffd663e31bd","head":{"label":"andela:chore/160056369/setup-react-router","ref":"chore/160056369/setup-react-router","sha":"d9fa2932b1f8a0cd1d7b0ddc37253ffd663e31bd","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":146319768,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk3Njg=","name":"rivendell-ah-client","full_name":"andela/rivendell-ah-client","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/rivendell-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/rivendell-ah-client","forks_url":"https://api.github.com/repos/andela/rivendell-ah-client/forks","keys_url":"https://api.github.com/repos/andela/rivendell-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/rivendell-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/rivendell-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/rivendell-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/rivendell-ah-client/events","assignees_url":"https://api.github.com/repos/andela/rivendell-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/rivendell-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/rivendell-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/rivendell-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/rivendell-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/rivendell-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/rivendell-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/rivendell-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/rivendell-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/rivendell-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/rivendell-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/rivendell-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/rivendell-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/rivendell-ah-client/merges","archive_url":"https://api.github.com/repos/andela/rivendell-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/rivendell-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/rivendell-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/rivendell-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/rivendell-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/rivendell-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/rivendell-ah-client/deployments","created_at":"2018-08-27T15:49:06Z","updated_at":"2018-09-04T12:55:56Z","pushed_at":"2018-09-06T14:23:12Z","git_url":"git://github.com/andela/rivendell-ah-client.git","ssh_url":"git@github.com:andela/rivendell-ah-client.git","clone_url":"https://github.com/andela/rivendell-ah-client.git","svn_url":"https://github.com/andela/rivendell-ah-client","homepage":null,"size":4282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"896a4aad6b70fdbf055c7a2c4c558dec89b39723","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":146319768,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk3Njg=","name":"rivendell-ah-client","full_name":"andela/rivendell-ah-client","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/rivendell-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/rivendell-ah-client","forks_url":"https://api.github.com/repos/andela/rivendell-ah-client/forks","keys_url":"https://api.github.com/repos/andela/rivendell-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/rivendell-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/rivendell-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/rivendell-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/rivendell-ah-client/events","assignees_url":"https://api.github.com/repos/andela/rivendell-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/rivendell-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/rivendell-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/rivendell-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/rivendell-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/rivendell-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/rivendell-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/rivendell-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/rivendell-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/rivendell-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/rivendell-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/rivendell-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/rivendell-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/rivendell-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/rivendell-ah-client/merges","archive_url":"https://api.github.com/repos/andela/rivendell-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/rivendell-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/rivendell-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/rivendell-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/rivendell-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/rivendell-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/rivendell-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/rivendell-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/rivendell-ah-client/deployments","created_at":"2018-08-27T15:49:06Z","updated_at":"2018-09-04T12:55:56Z","pushed_at":"2018-09-06T14:23:12Z","git_url":"git://github.com/andela/rivendell-ah-client.git","ssh_url":"git@github.com:andela/rivendell-ah-client.git","clone_url":"https://github.com/andela/rivendell-ah-client.git","svn_url":"https://github.com/andela/rivendell-ah-client","homepage":null,"size":4282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7"},"html":{"href":"https://github.com/andela/rivendell-ah-client/pull/7"},"issue":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/issues/7"},"comments":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/andela/rivendell-ah-client/statuses/d9fa2932b1f8a0cd1d7b0ddc37253ffd663e31bd"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"rhenshaw56"}}