{"action":"created","comment":{"url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/comments/73955870","id":73955870,"diff_hunk":"@@ -1,3 +1,81 @@\n 'use strict';\n+/*\n+ api: sunucu, mongo iletişim tarafı\n+ app: api'a request (localhost vs) ->\n+ */\n \n-console.log('hello world!');\n\\ No newline at end of file\n+let express = require('express'),\n+    router = express.Router(),\n+    mongoose = require('mongoose'),\n+    Schema = mongoose.Schema,\n+    bodyParser = require('body-parser'),\n+    app = express();\n+    //db = require('./db');\n+\n+//app.set('port', 3000);\n+\n+\n+let db = mongoose.connection;\n+db.on('error', console.error.bind(console, 'connection error:'));\n+db.once('open', function() {\n+\n+    console.log('Connected!');\n+});\n+\n+// use to()do-yagiz diyerek db yarattim\n+mongoose.connect('mongodb://localhost/todolist');\n+\n+// Schema\n+let ListItemSchema = new Schema({\n+    name: String,\n+    info: String,\n+    priority: Number},\n+    { collection : 'listitems'}","path":"api/index.js","position":35,"original_position":35,"commit_id":"4dc540a599016399249ffd356dc265a77218f796","original_commit_id":"4dc540a599016399249ffd356dc265a77218f796","user":{"login":"anonrig","id":1935246,"avatar_url":"https://avatars.githubusercontent.com/u/1935246?v=3","gravatar_id":"","url":"https://api.github.com/users/anonrig","html_url":"https://github.com/anonrig","followers_url":"https://api.github.com/users/anonrig/followers","following_url":"https://api.github.com/users/anonrig/following{/other_user}","gists_url":"https://api.github.com/users/anonrig/gists{/gist_id}","starred_url":"https://api.github.com/users/anonrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anonrig/subscriptions","organizations_url":"https://api.github.com/users/anonrig/orgs","repos_url":"https://api.github.com/users/anonrig/repos","events_url":"https://api.github.com/users/anonrig/events{/privacy}","received_events_url":"https://api.github.com/users/anonrig/received_events","type":"User","site_admin":false},"body":"bu satira gerek yok","created_at":"2016-08-08T21:12:58Z","updated_at":"2016-08-08T21:12:58Z","html_url":"https://github.com/cemsterr/todo-yagiz/pull/2#discussion_r73955870","pull_request_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/comments/73955870"},"html":{"href":"https://github.com/cemsterr/todo-yagiz/pull/2#discussion_r73955870"},"pull_request":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2","id":80371005,"html_url":"https://github.com/cemsterr/todo-yagiz/pull/2","diff_url":"https://github.com/cemsterr/todo-yagiz/pull/2.diff","patch_url":"https://github.com/cemsterr/todo-yagiz/pull/2.patch","issue_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/2","number":2,"state":"open","locked":false,"title":"Cem","user":{"login":"cemsterr","id":16170981,"avatar_url":"https://avatars.githubusercontent.com/u/16170981?v=3","gravatar_id":"","url":"https://api.github.com/users/cemsterr","html_url":"https://github.com/cemsterr","followers_url":"https://api.github.com/users/cemsterr/followers","following_url":"https://api.github.com/users/cemsterr/following{/other_user}","gists_url":"https://api.github.com/users/cemsterr/gists{/gist_id}","starred_url":"https://api.github.com/users/cemsterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemsterr/subscriptions","organizations_url":"https://api.github.com/users/cemsterr/orgs","repos_url":"https://api.github.com/users/cemsterr/repos","events_url":"https://api.github.com/users/cemsterr/events{/privacy}","received_events_url":"https://api.github.com/users/cemsterr/received_events","type":"User","site_admin":false},"body":"Added node&angular related files","created_at":"2016-08-07T16:11:05Z","updated_at":"2016-08-08T21:12:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c1ccd5dc62c10176bd1f565c09576e7d80ddd1d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/2/comments","statuses_url":"https://api.github.com/repos/cemsterr/todo-yagiz/statuses/4dc540a599016399249ffd356dc265a77218f796","head":{"label":"cemsterr:cem","ref":"cem","sha":"4dc540a599016399249ffd356dc265a77218f796","user":{"login":"cemsterr","id":16170981,"avatar_url":"https://avatars.githubusercontent.com/u/16170981?v=3","gravatar_id":"","url":"https://api.github.com/users/cemsterr","html_url":"https://github.com/cemsterr","followers_url":"https://api.github.com/users/cemsterr/followers","following_url":"https://api.github.com/users/cemsterr/following{/other_user}","gists_url":"https://api.github.com/users/cemsterr/gists{/gist_id}","starred_url":"https://api.github.com/users/cemsterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemsterr/subscriptions","organizations_url":"https://api.github.com/users/cemsterr/orgs","repos_url":"https://api.github.com/users/cemsterr/repos","events_url":"https://api.github.com/users/cemsterr/events{/privacy}","received_events_url":"https://api.github.com/users/cemsterr/received_events","type":"User","site_admin":false},"repo":{"id":65094094,"name":"todo-yagiz","full_name":"cemsterr/todo-yagiz","owner":{"login":"cemsterr","id":16170981,"avatar_url":"https://avatars.githubusercontent.com/u/16170981?v=3","gravatar_id":"","url":"https://api.github.com/users/cemsterr","html_url":"https://github.com/cemsterr","followers_url":"https://api.github.com/users/cemsterr/followers","following_url":"https://api.github.com/users/cemsterr/following{/other_user}","gists_url":"https://api.github.com/users/cemsterr/gists{/gist_id}","starred_url":"https://api.github.com/users/cemsterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemsterr/subscriptions","organizations_url":"https://api.github.com/users/cemsterr/orgs","repos_url":"https://api.github.com/users/cemsterr/repos","events_url":"https://api.github.com/users/cemsterr/events{/privacy}","received_events_url":"https://api.github.com/users/cemsterr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cemsterr/todo-yagiz","description":" To-do application with MEAN stack","fork":false,"url":"https://api.github.com/repos/cemsterr/todo-yagiz","forks_url":"https://api.github.com/repos/cemsterr/todo-yagiz/forks","keys_url":"https://api.github.com/repos/cemsterr/todo-yagiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cemsterr/todo-yagiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cemsterr/todo-yagiz/teams","hooks_url":"https://api.github.com/repos/cemsterr/todo-yagiz/hooks","issue_events_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/events{/number}","events_url":"https://api.github.com/repos/cemsterr/todo-yagiz/events","assignees_url":"https://api.github.com/repos/cemsterr/todo-yagiz/assignees{/user}","branches_url":"https://api.github.com/repos/cemsterr/todo-yagiz/branches{/branch}","tags_url":"https://api.github.com/repos/cemsterr/todo-yagiz/tags","blobs_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cemsterr/todo-yagiz/statuses/{sha}","languages_url":"https://api.github.com/repos/cemsterr/todo-yagiz/languages","stargazers_url":"https://api.github.com/repos/cemsterr/todo-yagiz/stargazers","contributors_url":"https://api.github.com/repos/cemsterr/todo-yagiz/contributors","subscribers_url":"https://api.github.com/repos/cemsterr/todo-yagiz/subscribers","subscription_url":"https://api.github.com/repos/cemsterr/todo-yagiz/subscription","commits_url":"https://api.github.com/repos/cemsterr/todo-yagiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/cemsterr/todo-yagiz/contents/{+path}","compare_url":"https://api.github.com/repos/cemsterr/todo-yagiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cemsterr/todo-yagiz/merges","archive_url":"https://api.github.com/repos/cemsterr/todo-yagiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cemsterr/todo-yagiz/downloads","issues_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues{/number}","pulls_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls{/number}","milestones_url":"https://api.github.com/repos/cemsterr/todo-yagiz/milestones{/number}","notifications_url":"https://api.github.com/repos/cemsterr/todo-yagiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cemsterr/todo-yagiz/labels{/name}","releases_url":"https://api.github.com/repos/cemsterr/todo-yagiz/releases{/id}","deployments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/deployments","created_at":"2016-08-06T17:31:46Z","updated_at":"2016-08-06T19:31:25Z","pushed_at":"2016-08-08T21:06:56Z","git_url":"git://github.com/cemsterr/todo-yagiz.git","ssh_url":"git@github.com:cemsterr/todo-yagiz.git","clone_url":"https://github.com/cemsterr/todo-yagiz.git","svn_url":"https://github.com/cemsterr/todo-yagiz","homepage":null,"size":4,"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":"cemsterr:master","ref":"master","sha":"9e2386b31317374887e337e8e26c2aa962b501e4","user":{"login":"cemsterr","id":16170981,"avatar_url":"https://avatars.githubusercontent.com/u/16170981?v=3","gravatar_id":"","url":"https://api.github.com/users/cemsterr","html_url":"https://github.com/cemsterr","followers_url":"https://api.github.com/users/cemsterr/followers","following_url":"https://api.github.com/users/cemsterr/following{/other_user}","gists_url":"https://api.github.com/users/cemsterr/gists{/gist_id}","starred_url":"https://api.github.com/users/cemsterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemsterr/subscriptions","organizations_url":"https://api.github.com/users/cemsterr/orgs","repos_url":"https://api.github.com/users/cemsterr/repos","events_url":"https://api.github.com/users/cemsterr/events{/privacy}","received_events_url":"https://api.github.com/users/cemsterr/received_events","type":"User","site_admin":false},"repo":{"id":65094094,"name":"todo-yagiz","full_name":"cemsterr/todo-yagiz","owner":{"login":"cemsterr","id":16170981,"avatar_url":"https://avatars.githubusercontent.com/u/16170981?v=3","gravatar_id":"","url":"https://api.github.com/users/cemsterr","html_url":"https://github.com/cemsterr","followers_url":"https://api.github.com/users/cemsterr/followers","following_url":"https://api.github.com/users/cemsterr/following{/other_user}","gists_url":"https://api.github.com/users/cemsterr/gists{/gist_id}","starred_url":"https://api.github.com/users/cemsterr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemsterr/subscriptions","organizations_url":"https://api.github.com/users/cemsterr/orgs","repos_url":"https://api.github.com/users/cemsterr/repos","events_url":"https://api.github.com/users/cemsterr/events{/privacy}","received_events_url":"https://api.github.com/users/cemsterr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cemsterr/todo-yagiz","description":" To-do application with MEAN stack","fork":false,"url":"https://api.github.com/repos/cemsterr/todo-yagiz","forks_url":"https://api.github.com/repos/cemsterr/todo-yagiz/forks","keys_url":"https://api.github.com/repos/cemsterr/todo-yagiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cemsterr/todo-yagiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cemsterr/todo-yagiz/teams","hooks_url":"https://api.github.com/repos/cemsterr/todo-yagiz/hooks","issue_events_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/events{/number}","events_url":"https://api.github.com/repos/cemsterr/todo-yagiz/events","assignees_url":"https://api.github.com/repos/cemsterr/todo-yagiz/assignees{/user}","branches_url":"https://api.github.com/repos/cemsterr/todo-yagiz/branches{/branch}","tags_url":"https://api.github.com/repos/cemsterr/todo-yagiz/tags","blobs_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cemsterr/todo-yagiz/statuses/{sha}","languages_url":"https://api.github.com/repos/cemsterr/todo-yagiz/languages","stargazers_url":"https://api.github.com/repos/cemsterr/todo-yagiz/stargazers","contributors_url":"https://api.github.com/repos/cemsterr/todo-yagiz/contributors","subscribers_url":"https://api.github.com/repos/cemsterr/todo-yagiz/subscribers","subscription_url":"https://api.github.com/repos/cemsterr/todo-yagiz/subscription","commits_url":"https://api.github.com/repos/cemsterr/todo-yagiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/cemsterr/todo-yagiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/cemsterr/todo-yagiz/contents/{+path}","compare_url":"https://api.github.com/repos/cemsterr/todo-yagiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cemsterr/todo-yagiz/merges","archive_url":"https://api.github.com/repos/cemsterr/todo-yagiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cemsterr/todo-yagiz/downloads","issues_url":"https://api.github.com/repos/cemsterr/todo-yagiz/issues{/number}","pulls_url":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls{/number}","milestones_url":"https://api.github.com/repos/cemsterr/todo-yagiz/milestones{/number}","notifications_url":"https://api.github.com/repos/cemsterr/todo-yagiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cemsterr/todo-yagiz/labels{/name}","releases_url":"https://api.github.com/repos/cemsterr/todo-yagiz/releases{/id}","deployments_url":"https://api.github.com/repos/cemsterr/todo-yagiz/deployments","created_at":"2016-08-06T17:31:46Z","updated_at":"2016-08-06T19:31:25Z","pushed_at":"2016-08-08T21:06:56Z","git_url":"git://github.com/cemsterr/todo-yagiz.git","ssh_url":"git@github.com:cemsterr/todo-yagiz.git","clone_url":"https://github.com/cemsterr/todo-yagiz.git","svn_url":"https://github.com/cemsterr/todo-yagiz","homepage":null,"size":4,"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/cemsterr/todo-yagiz/pulls/2"},"html":{"href":"https://github.com/cemsterr/todo-yagiz/pull/2"},"issue":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/2"},"comments":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cemsterr/todo-yagiz/statuses/4dc540a599016399249ffd356dc265a77218f796"}}}}
{"actor":{"display_login":"anonrig"}}