$ npm list -g
$ npm init -y
$ nano servidor.js
servidor.js
/*Facturas*/
var listaFacturas=[];
listaFacturas.push(facturaDatosA);
listaFacturas.push(facturaDatosB);
/*Cargar Express*/
var express = require('express');
var app = express();
/*URL de Facturas*/
//http://localhost:8888/facturas
app.get("/facturas",function(request,response){
response.send(listaFacturas);
});
app.get("/hola", (request,response)=>{
response.send("<h1>Hola desde Node<font color='red'>JS</font>.</h1>");
});