Answers for "set up background process in express app"

0

set up background process in express app

function populateDatabase() {
  //connect to streaming API
  //populate database
}

module.exports = populateDatabase;
Posted by: Guest on July-22-2020
0

set up background process in express app

//app.js
var populateDatabase = require("./listen");
setInterval(60 * 1000, populateDatabase);
// rest of app setup/start code
Posted by: Guest on July-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language