{"action":"created","issue":{"url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/89","labels_url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/89/comments","events_url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/89/events","html_url":"https://github.com/iblancasa/BackendSI2-IV/issues/89","id":54803780,"number":89,"title":"Devolver consultas para la web (BDD)","user":{"login":"ramako","id":8879857,"avatar_url":"https://avatars.githubusercontent.com/u/8879857?v=3","gravatar_id":"","url":"https://api.github.com/users/ramako","html_url":"https://github.com/ramako","followers_url":"https://api.github.com/users/ramako/followers","following_url":"https://api.github.com/users/ramako/following{/other_user}","gists_url":"https://api.github.com/users/ramako/gists{/gist_id}","starred_url":"https://api.github.com/users/ramako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramako/subscriptions","organizations_url":"https://api.github.com/users/ramako/orgs","repos_url":"https://api.github.com/users/ramako/repos","events_url":"https://api.github.com/users/ramako/events{/privacy}","received_events_url":"https://api.github.com/users/ramako/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/labels/Aviso","name":"Aviso","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T19:38:10Z","updated_at":"2015-01-19T19:40:08Z","closed_at":null,"body":"@iblancasa \r\nHe subido un empresa.js en el que, supuestamente, muestra todas las empresas que hay en la base de datos almacenada.\r\n\r\nPara mostrar la consulta en node creo que seria algo así\r\n```javascript\r\nvar consultaWebEmpresas = require('../model/empresa.js');\r\nconsultaWebEmpresas.listaEmpresas(function(err,empresas){\r\n\r\nmostrarEmpresas= empresas\r\n```\r\ndonde los datos de la consulta son devueltos en function(err,empresas) , estando los datos (el json supongo) en la variable empresas.\r\n\r\nPero esto hay que probarlo (y arreglarlo, porque dudo que funcione a la primera). "},"comment":{"url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/comments/70548828","html_url":"https://github.com/iblancasa/BackendSI2-IV/issues/89#issuecomment-70548828","issue_url":"https://api.github.com/repos/iblancasa/BackendSI2-IV/issues/89","id":70548828,"user":{"login":"iblancasa","id":4806311,"avatar_url":"https://avatars.githubusercontent.com/u/4806311?v=3","gravatar_id":"","url":"https://api.github.com/users/iblancasa","html_url":"https://github.com/iblancasa","followers_url":"https://api.github.com/users/iblancasa/followers","following_url":"https://api.github.com/users/iblancasa/following{/other_user}","gists_url":"https://api.github.com/users/iblancasa/gists{/gist_id}","starred_url":"https://api.github.com/users/iblancasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iblancasa/subscriptions","organizations_url":"https://api.github.com/users/iblancasa/orgs","repos_url":"https://api.github.com/users/iblancasa/repos","events_url":"https://api.github.com/users/iblancasa/events{/privacy}","received_events_url":"https://api.github.com/users/iblancasa/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T19:40:08Z","updated_at":"2015-01-19T19:40:08Z","body":">Pero esto hay que probarlo (y arreglarlo, porque dudo que funcione a la primera).\r\n\r\n¡Así, con positividad!\r\n\r\nMañana lo probamos. Voy a actualizar el TODO para poner lo mínimo, mínimo que deberíamos hacer"}}