A simple Node.js app to download files from matrixreq project using fetch.
- Node.js (version 18 recommended)
- Clone the repository or download the
index.jsfile. - Install the required dependencies:
npm install node-fetchRun the app using the following command:
node app.js <BASE_URL> <PROJECT> <TOKEN>Replace <BASE_URL> with the base URL, with the project label, and with the authentication token.
The app will download the files into a folder named after the provided PROJECT value.
node app.js https://demo.matrixreq.com QMS_FILES abcd1234efgh5678In this example, the base URL is https://demo.matrixreq.com, the project value is QMS_FILES, and the authentication token is abcd1234efgh5678. The downloaded files will be saved in a folder named QMS_FILES.