Created
November 21, 2017 17:05
-
-
Save AyoAlfonso/f15b4df8f2bd1754c7f16116e3fc06a2 to your computer and use it in GitHub Desktop.
Cron-test start app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dependencies | |
var express = require('express'); | |
var CronJob = require('cron').CronJob; | |
var cronReport = require('./controller/cron'); | |
// App definition | |
var app = express(); | |
//The crone job | |
cronReport.createCroneJob(); | |
var portNum = 3000; | |
app.listen(3000, function () { | |
console.log('Making some pancakes on port:', portNum); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment