Skip to content

Commit

Permalink
basic task runner setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Nov 18, 2021
1 parent 0f94a15 commit 20ff3cd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions manager.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 20ff3cd

Please sign in to comment.