title: How do I host a NodeJS http web server on a raspberry PI/or any linux based PC
body: <p>I've seen people host Apache servers on raspberry PI's and of course on regular computers. I do not wish to or rent a VPS and thought it would be best to set one up on my Raspberry PI 2 B:</p>
  <pre><code>(1gb ram/32gb disk/1ghz on overclock)
  </code></pre>
  <p>What is the proper way of setting up a NodeJS http web server on a computer? Can you link me to a tutorial if one exists(Couldn't find any).</p>
  <p>I was also wondering if I would be better of renting a VPS with recurring costs and lack of customization/control , or on a working dedicated PC. Keep in mind that I wish to practice some dev ops work over multiple PI's(ex. Chef).</p>
  <p>I need this server to be accessible through the internet through an ip or domain. How do I go about setting that up? (I have domains)</p>
  <h2><em>Update</em>: I wrote a blog post on this subject.</h2>
  <p>The tutorial goes through the full installation process. Click the link below</p>
  <p><a href="https://maxmastalerz.com/blog/hosting-a-nodejs-http-server-on-a-raspberry-pi" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kMlvU.png" alt="Hosting a Node.js HTTP server on a Raspberry Pi" /></a></p>