{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48","id":240116431,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMTE2NDMx","html_url":"https://github.com/andela/ah-infinity-stones/pull/48","diff_url":"https://github.com/andela/ah-infinity-stones/pull/48.diff","patch_url":"https://github.com/andela/ah-infinity-stones/pull/48.patch","issue_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/48","number":48,"state":"open","locked":false,"title":"#161966906 Heroku Deployment","user":{"login":"leonardnjura","id":39657549,"node_id":"MDQ6VXNlcjM5NjU3NTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/39657549?v=4","gravatar_id":"","url":"https://api.github.com/users/leonardnjura","html_url":"https://github.com/leonardnjura","followers_url":"https://api.github.com/users/leonardnjura/followers","following_url":"https://api.github.com/users/leonardnjura/following{/other_user}","gists_url":"https://api.github.com/users/leonardnjura/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardnjura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardnjura/subscriptions","organizations_url":"https://api.github.com/users/leonardnjura/orgs","repos_url":"https://api.github.com/users/leonardnjura/repos","events_url":"https://api.github.com/users/leonardnjura/events{/privacy}","received_events_url":"https://api.github.com/users/leonardnjura/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Setup and deploy base application to Heroku\r\n- Allows web access of all endpoints\r\n\r\n#### Description of Task to be completed?\r\n> User navigates to provided URLs or endpoints in the browser\r\n> User should access the live application\r\n\r\n#### How should this be manually tested?\r\n`$ git clone -b ch-heroku-deployment-161966906 https://github.com/andela/ah-infinity-stones` then\r\n`$ cd ah-infinity-stones`\r\n> Create and activate virtual env\r\nvirtualenv -p python3 venv\r\n`$ source venv/bin/activate`\r\n`$ pip3 install -r requirements.txt to install the dependencies`\r\n> Setup environment variables. Copy all from below and paste them into the .env file. Update the values to your choice:\r\n> Locally Run `gunicorn authors.wsgi` locally to test\r\n> On Heroku connect this repository and branch\r\n> Create postgres hobby dev database \r\n> On Heroku configure settings vars to match your environment vars\r\n> Deploy and access endpoints such as:\r\n\r\n> `POST http://127.0.0.1:8000/api/users/`\r\n> `GET http://127.0.0.1:8000/api/profiles/`\r\n> `GET http://127.0.0.1:8000/api/profiles/?page=2`\r\n> `GET http://127.0.0.1:8000/api/profiles/u`\r\n> `GET PUT http://127.0.0.1:8000/api/profiles/<username>`\r\n\r\nPopulate your `.env` with:\r\n```\r\n\r\nexport DATABASE_URL=postgres://<database_user>:<database_password>@localhost/<database_name>\r\n\r\n export EMAIL_HOST_USER='sendgrid_username'\r\n export EMAIL_HOST_PASSWORD='sendgrid_pswd'\r\n export SECRET_KEY='your_secret'\r\n \r\n```\r\n> Activate the env variables by `$ source .env`\r\n> Run migrations: `$ python3 manage.py makemigrations`\r\n> Run migrations: `$ python3 manage.py migrate`\r\n> Run generic tests `$ python3 manage.py test`\r\n> Run specific tests `$ python3 manage.py test authors/apps/profiles`\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#161966906](https://www.pivotaltracker.com/story/show/161966906)\r\n\r\n#### Screenshots\r\n<img width=\"1280\" alt=\"screen shot 2018-12-20 at 13 12 01\" src=\"https://user-images.githubusercontent.com/39657549/50278693-c4fc1a00-0458-11e9-939b-b56405882adb.png\">\r\n<img width=\"1280\" alt=\"screen shot 2018-12-20 at 13 12 55\" src=\"https://user-images.githubusercontent.com/39657549/50278791-10aec380-0459-11e9-99ef-1100d817c8f8.png\">\r\n\r\n","created_at":"2018-12-20T10:14:26Z","updated_at":"2018-12-20T10:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48/commits","review_comments_url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48/comments","review_comment_url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/48/comments","statuses_url":"https://api.github.com/repos/andela/ah-infinity-stones/statuses/2fcac6f3e5552e0e5b0f604c82934956878966fa","head":{"label":"andela:ch-heroku-deployment-161966906","ref":"ch-heroku-deployment-161966906","sha":"2fcac6f3e5552e0e5b0f604c82934956878966fa","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":157216236,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcyMTYyMzY=","name":"ah-infinity-stones","full_name":"andela/ah-infinity-stones","private":false,"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},"html_url":"https://github.com/andela/ah-infinity-stones","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-infinity-stones","forks_url":"https://api.github.com/repos/andela/ah-infinity-stones/forks","keys_url":"https://api.github.com/repos/andela/ah-infinity-stones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-infinity-stones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-infinity-stones/teams","hooks_url":"https://api.github.com/repos/andela/ah-infinity-stones/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-infinity-stones/events","assignees_url":"https://api.github.com/repos/andela/ah-infinity-stones/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-infinity-stones/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-infinity-stones/tags","blobs_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-infinity-stones/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-infinity-stones/languages","stargazers_url":"https://api.github.com/repos/andela/ah-infinity-stones/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-infinity-stones/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-infinity-stones/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-infinity-stones/subscription","commits_url":"https://api.github.com/repos/andela/ah-infinity-stones/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-infinity-stones/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-infinity-stones/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-infinity-stones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-infinity-stones/merges","archive_url":"https://api.github.com/repos/andela/ah-infinity-stones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-infinity-stones/downloads","issues_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-infinity-stones/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-infinity-stones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-infinity-stones/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-infinity-stones/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-infinity-stones/deployments","created_at":"2018-11-12T13:16:11Z","updated_at":"2018-12-19T16:38:38Z","pushed_at":"2018-12-20T09:45:19Z","git_url":"git://github.com/andela/ah-infinity-stones.git","ssh_url":"git@github.com:andela/ah-infinity-stones.git","clone_url":"https://github.com/andela/ah-infinity-stones.git","svn_url":"https://github.com/andela/ah-infinity-stones","homepage":null,"size":4568,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":10,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"d65f246bd6c73653344dcf25914d0d24f0dbe0b9","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":157216236,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcyMTYyMzY=","name":"ah-infinity-stones","full_name":"andela/ah-infinity-stones","private":false,"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},"html_url":"https://github.com/andela/ah-infinity-stones","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-infinity-stones","forks_url":"https://api.github.com/repos/andela/ah-infinity-stones/forks","keys_url":"https://api.github.com/repos/andela/ah-infinity-stones/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-infinity-stones/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-infinity-stones/teams","hooks_url":"https://api.github.com/repos/andela/ah-infinity-stones/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-infinity-stones/events","assignees_url":"https://api.github.com/repos/andela/ah-infinity-stones/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-infinity-stones/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-infinity-stones/tags","blobs_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-infinity-stones/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-infinity-stones/languages","stargazers_url":"https://api.github.com/repos/andela/ah-infinity-stones/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-infinity-stones/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-infinity-stones/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-infinity-stones/subscription","commits_url":"https://api.github.com/repos/andela/ah-infinity-stones/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-infinity-stones/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-infinity-stones/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-infinity-stones/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-infinity-stones/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-infinity-stones/merges","archive_url":"https://api.github.com/repos/andela/ah-infinity-stones/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-infinity-stones/downloads","issues_url":"https://api.github.com/repos/andela/ah-infinity-stones/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-infinity-stones/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-infinity-stones/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-infinity-stones/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-infinity-stones/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-infinity-stones/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-infinity-stones/deployments","created_at":"2018-11-12T13:16:11Z","updated_at":"2018-12-19T16:38:38Z","pushed_at":"2018-12-20T09:45:19Z","git_url":"git://github.com/andela/ah-infinity-stones.git","ssh_url":"git@github.com:andela/ah-infinity-stones.git","clone_url":"https://github.com/andela/ah-infinity-stones.git","svn_url":"https://github.com/andela/ah-infinity-stones","homepage":null,"size":4568,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48"},"html":{"href":"https://github.com/andela/ah-infinity-stones/pull/48"},"issue":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/issues/48"},"comments":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-infinity-stones/statuses/2fcac6f3e5552e0e5b0f604c82934956878966fa"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":811,"deletions":75,"changed_files":40}}
{"actor":{"display_login":"leonardnjura"}}