title: Simple NodeJS output to browser
body: <p>I want to use the browser as a "2nd Console" for debugging purposes. My plan is to use the main console for the technical stuff and to use the browser to output App related data. Eventually I will pretty it all up, but for now, I just want to have it up and running.</p>
  
  <p>So here is my quick and sloppy code:</p>
  
  <pre><code>    const express = require('express')
  const app = express()
  var test;
  app.all('/', (req, res) =&gt; res.send(test));
  app.listen(3000, () =&gt; console.log('Example app listening on port 3000!'))
  </code></pre>
  
  <p>That's it, I just change the test var to whatever I want to show, it was working well for a while, but I'm getting to the point where there is a lot of data I want to show and it's getting sloppy.</p>
  
  <p>I'd love to hear some suggestions.</p>