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