Redash in JavaScript - run query in multiple envs
- Clone
- move to node version that found in the
.nvmrc
file - copy
env.example.js
toenv.js
- Set the urls, token (token can be found in the profile page in redash) and data source id
- run
npm i
- run
node index.js "<query>"
In case you have other envs you need to change throughout the code (In the future I want to make it configurable)
I need to publish this as an NPM package, I'll try to do it when I have time