title: Node.js automatic GET requests
body: <p>I need to do a GET request and add to a mongoDB every 10 minutes in my node app.</p>
  
  <p>I'm relatively new to node, and currently have to visit /myurl to initiate the process(GET and add to DB), which works as expected.</p>
  
  <p>What would be the best method to have the node app constantly make this GET request(every 10 mins-ish)?</p>
  
  <p>My research has led me to things like:</p>
  
  <ul>
  <li>JavaScript: var t=setInterval(runFunction,1000);</li>
  <li>Cron job. I'm not sure if it's possible to have a cron job execute a node function. Maybe this needs to be done outside of node.</li>
  </ul>
  
  <p>Any suggestions would be greatly appreciated.</p>