{"action":"opened","issue":{"url":"https://api.github.com/repos/un-olk/Diary/issues/23","labels_url":"https://api.github.com/repos/un-olk/Diary/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/un-olk/Diary/issues/23/comments","events_url":"https://api.github.com/repos/un-olk/Diary/issues/23/events","html_url":"https://github.com/un-olk/Diary/issues/23","id":119373365,"number":23,"title":"Create the MongoConnect class","user":{"login":"un-olk","id":8271691,"avatar_url":"https://avatars.githubusercontent.com/u/8271691?v=3","gravatar_id":"","url":"https://api.github.com/users/un-olk","html_url":"https://github.com/un-olk","followers_url":"https://api.github.com/users/un-olk/followers","following_url":"https://api.github.com/users/un-olk/following{/other_user}","gists_url":"https://api.github.com/users/un-olk/gists{/gist_id}","starred_url":"https://api.github.com/users/un-olk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un-olk/subscriptions","organizations_url":"https://api.github.com/users/un-olk/orgs","repos_url":"https://api.github.com/users/un-olk/repos","events_url":"https://api.github.com/users/un-olk/events{/privacy}","received_events_url":"https://api.github.com/users/un-olk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/un-olk/Diary/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"IvMykh","id":11576442,"avatar_url":"https://avatars.githubusercontent.com/u/11576442?v=3","gravatar_id":"","url":"https://api.github.com/users/IvMykh","html_url":"https://github.com/IvMykh","followers_url":"https://api.github.com/users/IvMykh/followers","following_url":"https://api.github.com/users/IvMykh/following{/other_user}","gists_url":"https://api.github.com/users/IvMykh/gists{/gist_id}","starred_url":"https://api.github.com/users/IvMykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvMykh/subscriptions","organizations_url":"https://api.github.com/users/IvMykh/orgs","repos_url":"https://api.github.com/users/IvMykh/repos","events_url":"https://api.github.com/users/IvMykh/events{/privacy}","received_events_url":"https://api.github.com/users/IvMykh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/un-olk/Diary/milestones/1","html_url":"https://github.com/un-olk/Diary/milestones/v.1.0.0","labels_url":"https://api.github.com/repos/un-olk/Diary/milestones/1/labels","id":1423241,"number":1,"title":"v.1.0.0","description":"","creator":{"login":"un-olk","id":8271691,"avatar_url":"https://avatars.githubusercontent.com/u/8271691?v=3","gravatar_id":"","url":"https://api.github.com/users/un-olk","html_url":"https://github.com/un-olk","followers_url":"https://api.github.com/users/un-olk/followers","following_url":"https://api.github.com/users/un-olk/following{/other_user}","gists_url":"https://api.github.com/users/un-olk/gists{/gist_id}","starred_url":"https://api.github.com/users/un-olk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un-olk/subscriptions","organizations_url":"https://api.github.com/users/un-olk/orgs","repos_url":"https://api.github.com/users/un-olk/repos","events_url":"https://api.github.com/users/un-olk/events{/privacy}","received_events_url":"https://api.github.com/users/un-olk/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":8,"state":"open","created_at":"2015-11-21T17:49:51Z","updated_at":"2015-11-29T17:49:21Z","due_on":"2015-12-08T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-11-29T17:49:21Z","updated_at":"2015-11-29T17:49:21Z","closed_at":null,"body":"**MongoConnect** should:\r\n1. establish the database connection\r\n2. return an instance of opened connection (**DataManager** will use it to pass queries to database)\r\n3. close the connection.\r\n\r\nSo basically, are the three required methods:\r\n* *connect()*\r\n* *disconnect()*\r\n* *getConnection()*\r\n\r\nNote that they don't take any arguments. All the information about the database, password etc. should be stored locally inside the **MongoConnect** class."}}