From 20ff3cdcbdf4fd1b70398a09f72f1a419de48125 Mon Sep 17 00:00:00 2001 From: pan261 Date: Thu, 18 Nov 2021 14:42:08 -0500 Subject: [PATCH] basic task runner setup --- manager.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 manager.js diff --git a/manager.js b/manager.js new file mode 100644 index 0000000..4a5c1ff --- /dev/null +++ b/manager.js @@ -0,0 +1,19 @@ +const axios = require('axios'); +const watcher = require('./watcher'); +require('dotenv').config(); + +/** + * This file will be responsible for managing the watcher + * as well as ensuring the credentials are avaiable + * */ + +axios({ + method: 'GET', + url: 'http://localhost:3000/credentials' +}).then(res => { + console.log(res.data); +}); + +const projectID = "a.YnVzaW5lc3M6cHVyZHVlMjY5NiMyMDIxMTEwODQ2NDQzMzk3Ng"; +console.log(process.env.CREDENTIALS); +// setInterval(() => watcher.watch(projectID, 'urn:adsk.wipprod:fs.folder:co.ltuYad4ZTtieJLm6j3MGuA', ), 5000) \ No newline at end of file