//app.js var populateDatabase = require("./listen"); setInterval(60 * 1000, populateDatabase); // rest of app setup/start code
function populateDatabase() { //connect to streaming API //populate database } module.exports = populateDatabase;