{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/dj/hatch/pulls/1","id":30734245,"html_url":"https://github.com/dj/hatch/pull/1","diff_url":"https://github.com/dj/hatch/pull/1.diff","patch_url":"https://github.com/dj/hatch/pull/1.patch","issue_url":"https://api.github.com/repos/dj/hatch/issues/1","number":1,"state":"open","locked":false,"title":"Basic integration with server","user":{"login":"pietdaniel","id":1924983,"avatar_url":"https://avatars.githubusercontent.com/u/1924983?v=3","gravatar_id":"","url":"https://api.github.com/users/pietdaniel","html_url":"https://github.com/pietdaniel","followers_url":"https://api.github.com/users/pietdaniel/followers","following_url":"https://api.github.com/users/pietdaniel/following{/other_user}","gists_url":"https://api.github.com/users/pietdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/pietdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pietdaniel/subscriptions","organizations_url":"https://api.github.com/users/pietdaniel/orgs","repos_url":"https://api.github.com/users/pietdaniel/repos","events_url":"https://api.github.com/users/pietdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/pietdaniel/received_events","type":"User","site_admin":false},"body":"## Intro\r\n\r\nThis PR builds some basic integration with the server.\r\n\r\nI used NGINX this time around to ensure cross origin errors did not arise. Below are the configuration details if you wanted to set this up on a mac.\r\n\r\nThere is still a lot of work to be done here. \r\n * Tweets should really be a separated into a `TweetModel` and a `TweetsCollection`.\r\n * I couldn't get semantic web js building. Getting errors with [jquery](http://en.wikipedia.org/wiki/Jake_Weary) or something\r\n * The code should be separated into proper directory structures. Something like:\r\n```\r\njs/\r\n  app/\r\n    models/\r\n    views/\r\n    collections/\r\n    templates/\r\n```\r\n\r\nThere was a small change in the backend repo with what the /callback url returned. It now returns a redirect instead of a json success.\r\n\r\n### Dayuum thats some sweet design...\r\n\r\n#### Login Screen\r\n![screen shot 2015-03-08 at 11 24 27 pm](https://cloud.githubusercontent.com/assets/1924983/6549537/67a98144-c5eb-11e4-8139-fe5e15c38663.png)\r\n\r\n#### Search\r\n![screen shot 2015-03-08 at 11 24 17 pm](https://cloud.githubusercontent.com/assets/1924983/6549536/67a7d86c-c5eb-11e4-843e-861a0f514bc7.png)\r\n\r\n\r\n### NGINX\r\n\r\nInstall:\r\n```\r\nbrew install nginx\r\n```\r\n\r\nEdit nginx.conf\r\n```\r\nsudo vim /usr/local/etc/nginx/nginx.conf\r\n```\r\n\r\nAdd these lines\r\n```\r\nserver {\r\n  ...  \r\n  location /api/ { \r\n    proxy_pass http://127.0.0.1:5000/;\r\n  }\r\n  ...\r\n}\r\n```\r\n","created_at":"2015-03-09T03:33:32Z","updated_at":"2015-03-09T03:33:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dj/hatch/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dj/hatch/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dj/hatch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dj/hatch/issues/1/comments","statuses_url":"https://api.github.com/repos/dj/hatch/statuses/f30de765903e0a5ea24adac78a32b97a578820f1","head":{"label":"dj:piet-dev","ref":"piet-dev","sha":"f30de765903e0a5ea24adac78a32b97a578820f1","user":{"login":"dj","id":2610172,"avatar_url":"https://avatars.githubusercontent.com/u/2610172?v=3","gravatar_id":"","url":"https://api.github.com/users/dj","html_url":"https://github.com/dj","followers_url":"https://api.github.com/users/dj/followers","following_url":"https://api.github.com/users/dj/following{/other_user}","gists_url":"https://api.github.com/users/dj/gists{/gist_id}","starred_url":"https://api.github.com/users/dj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj/subscriptions","organizations_url":"https://api.github.com/users/dj/orgs","repos_url":"https://api.github.com/users/dj/repos","events_url":"https://api.github.com/users/dj/events{/privacy}","received_events_url":"https://api.github.com/users/dj/received_events","type":"User","site_admin":false},"repo":{"id":31230260,"name":"hatch","full_name":"dj/hatch","owner":{"login":"dj","id":2610172,"avatar_url":"https://avatars.githubusercontent.com/u/2610172?v=3","gravatar_id":"","url":"https://api.github.com/users/dj","html_url":"https://github.com/dj","followers_url":"https://api.github.com/users/dj/followers","following_url":"https://api.github.com/users/dj/following{/other_user}","gists_url":"https://api.github.com/users/dj/gists{/gist_id}","starred_url":"https://api.github.com/users/dj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj/subscriptions","organizations_url":"https://api.github.com/users/dj/orgs","repos_url":"https://api.github.com/users/dj/repos","events_url":"https://api.github.com/users/dj/events{/privacy}","received_events_url":"https://api.github.com/users/dj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dj/hatch","description":"CS4500: Twitter -> CSV for social scientists","fork":false,"url":"https://api.github.com/repos/dj/hatch","forks_url":"https://api.github.com/repos/dj/hatch/forks","keys_url":"https://api.github.com/repos/dj/hatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dj/hatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dj/hatch/teams","hooks_url":"https://api.github.com/repos/dj/hatch/hooks","issue_events_url":"https://api.github.com/repos/dj/hatch/issues/events{/number}","events_url":"https://api.github.com/repos/dj/hatch/events","assignees_url":"https://api.github.com/repos/dj/hatch/assignees{/user}","branches_url":"https://api.github.com/repos/dj/hatch/branches{/branch}","tags_url":"https://api.github.com/repos/dj/hatch/tags","blobs_url":"https://api.github.com/repos/dj/hatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dj/hatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dj/hatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/dj/hatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dj/hatch/statuses/{sha}","languages_url":"https://api.github.com/repos/dj/hatch/languages","stargazers_url":"https://api.github.com/repos/dj/hatch/stargazers","contributors_url":"https://api.github.com/repos/dj/hatch/contributors","subscribers_url":"https://api.github.com/repos/dj/hatch/subscribers","subscription_url":"https://api.github.com/repos/dj/hatch/subscription","commits_url":"https://api.github.com/repos/dj/hatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/dj/hatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/dj/hatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/dj/hatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/dj/hatch/contents/{+path}","compare_url":"https://api.github.com/repos/dj/hatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dj/hatch/merges","archive_url":"https://api.github.com/repos/dj/hatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dj/hatch/downloads","issues_url":"https://api.github.com/repos/dj/hatch/issues{/number}","pulls_url":"https://api.github.com/repos/dj/hatch/pulls{/number}","milestones_url":"https://api.github.com/repos/dj/hatch/milestones{/number}","notifications_url":"https://api.github.com/repos/dj/hatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dj/hatch/labels{/name}","releases_url":"https://api.github.com/repos/dj/hatch/releases{/id}","created_at":"2015-02-23T21:17:14Z","updated_at":"2015-02-27T14:50:14Z","pushed_at":"2015-03-09T03:22:42Z","git_url":"git://github.com/dj/hatch.git","ssh_url":"git@github.com:dj/hatch.git","clone_url":"https://github.com/dj/hatch.git","svn_url":"https://github.com/dj/hatch","homepage":null,"size":272,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"dj:master","ref":"master","sha":"4d9f43a100207d96e4c288ac32836d51ae3174be","user":{"login":"dj","id":2610172,"avatar_url":"https://avatars.githubusercontent.com/u/2610172?v=3","gravatar_id":"","url":"https://api.github.com/users/dj","html_url":"https://github.com/dj","followers_url":"https://api.github.com/users/dj/followers","following_url":"https://api.github.com/users/dj/following{/other_user}","gists_url":"https://api.github.com/users/dj/gists{/gist_id}","starred_url":"https://api.github.com/users/dj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj/subscriptions","organizations_url":"https://api.github.com/users/dj/orgs","repos_url":"https://api.github.com/users/dj/repos","events_url":"https://api.github.com/users/dj/events{/privacy}","received_events_url":"https://api.github.com/users/dj/received_events","type":"User","site_admin":false},"repo":{"id":31230260,"name":"hatch","full_name":"dj/hatch","owner":{"login":"dj","id":2610172,"avatar_url":"https://avatars.githubusercontent.com/u/2610172?v=3","gravatar_id":"","url":"https://api.github.com/users/dj","html_url":"https://github.com/dj","followers_url":"https://api.github.com/users/dj/followers","following_url":"https://api.github.com/users/dj/following{/other_user}","gists_url":"https://api.github.com/users/dj/gists{/gist_id}","starred_url":"https://api.github.com/users/dj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj/subscriptions","organizations_url":"https://api.github.com/users/dj/orgs","repos_url":"https://api.github.com/users/dj/repos","events_url":"https://api.github.com/users/dj/events{/privacy}","received_events_url":"https://api.github.com/users/dj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dj/hatch","description":"CS4500: Twitter -> CSV for social scientists","fork":false,"url":"https://api.github.com/repos/dj/hatch","forks_url":"https://api.github.com/repos/dj/hatch/forks","keys_url":"https://api.github.com/repos/dj/hatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dj/hatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dj/hatch/teams","hooks_url":"https://api.github.com/repos/dj/hatch/hooks","issue_events_url":"https://api.github.com/repos/dj/hatch/issues/events{/number}","events_url":"https://api.github.com/repos/dj/hatch/events","assignees_url":"https://api.github.com/repos/dj/hatch/assignees{/user}","branches_url":"https://api.github.com/repos/dj/hatch/branches{/branch}","tags_url":"https://api.github.com/repos/dj/hatch/tags","blobs_url":"https://api.github.com/repos/dj/hatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dj/hatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dj/hatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/dj/hatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dj/hatch/statuses/{sha}","languages_url":"https://api.github.com/repos/dj/hatch/languages","stargazers_url":"https://api.github.com/repos/dj/hatch/stargazers","contributors_url":"https://api.github.com/repos/dj/hatch/contributors","subscribers_url":"https://api.github.com/repos/dj/hatch/subscribers","subscription_url":"https://api.github.com/repos/dj/hatch/subscription","commits_url":"https://api.github.com/repos/dj/hatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/dj/hatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/dj/hatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/dj/hatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/dj/hatch/contents/{+path}","compare_url":"https://api.github.com/repos/dj/hatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dj/hatch/merges","archive_url":"https://api.github.com/repos/dj/hatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dj/hatch/downloads","issues_url":"https://api.github.com/repos/dj/hatch/issues{/number}","pulls_url":"https://api.github.com/repos/dj/hatch/pulls{/number}","milestones_url":"https://api.github.com/repos/dj/hatch/milestones{/number}","notifications_url":"https://api.github.com/repos/dj/hatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dj/hatch/labels{/name}","releases_url":"https://api.github.com/repos/dj/hatch/releases{/id}","created_at":"2015-02-23T21:17:14Z","updated_at":"2015-02-27T14:50:14Z","pushed_at":"2015-03-09T03:22:42Z","git_url":"git://github.com/dj/hatch.git","ssh_url":"git@github.com:dj/hatch.git","clone_url":"https://github.com/dj/hatch.git","svn_url":"https://github.com/dj/hatch","homepage":null,"size":272,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dj/hatch/pulls/1"},"html":{"href":"https://github.com/dj/hatch/pull/1"},"issue":{"href":"https://api.github.com/repos/dj/hatch/issues/1"},"comments":{"href":"https://api.github.com/repos/dj/hatch/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dj/hatch/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dj/hatch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dj/hatch/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dj/hatch/statuses/f30de765903e0a5ea24adac78a32b97a578820f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":117,"deletions":20,"changed_files":3}}