Skip to content

Instantly share code, notes, and snippets.

@fbenevides
Created March 21, 2011 18:31
Show Gist options
  • Save fbenevides/879933 to your computer and use it in GitHub Desktop.
Save fbenevides/879933 to your computer and use it in GitHub Desktop.
var http = require('http')
var info = {
"comparativo": [
{
"mes": "Janeiro",
"valor": "2000"
},
{
"mes": "Fevereiro",
"valor": "2000000"
},
{
"mes": "Março",
"valor": "2000000"
},
{
"mes": "Abril",
"valor": "2000000"
},
{
"mes": "Maio",
"valor": "2000000"
},
{
"mes": "Junho",
"valor": "2000000"
},
{
"mes": "Julho",
"valor": "2000000"
},
{
"mes": "Agosto",
"valor": "2000000"
},
{
"mes": "Setembro",
"valor": "2000000"
},
{
"mes": "Outubro",
"valor": "2000000"
},
{
"mes": "Novembro",
"valor": "2000000"
},
{
"mes": "Dezembro",
"valor": "2000000"
},
]
}
http.createServer(function(req, res) {
res.writeHead(200, {'Content-type': 'application/json'});
res.end(JSON.stringify(info));
console.log("Getting info..");
}).listen(8000, '127.0.0.1');
console.log('Started on port 8000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment