README.md 1004 Bytes
Newer Older
Erik Schwartz's avatar
Erik Schwartz committed
1
2
# recfu-mover

Erik Schwartz's avatar
Erik Schwartz committed
3
4
5
6
7
8
9
10
Download files from IQ SFTP server to local filesystem.

* Used for BO report delivery to Rec Fusion customers.
* BO -> SFTP [project documentation](https://iqops.dsc.umich.edu/wiki/index.php/Transfer_files_from_BO_to_IQ_SFTP_server).
* Tested with [Node.js v8 LTS](https://nodejs.org/en/).

## Install and unit test

11
12
13
14
First, install Node.js runtime ([Linux download](https://nodejs.org/dist/latest-v8.x/node-v8.14.0-linux-x64.tar.xz), [Windows download](https://nodejs.org/dist/latest-v8.x/node-v8.14.0-x64.msi), [SHAsums](https://nodejs.org/dist/latest-v8.x/SHASUMS256.txt)).

Next, clone this repository, enter its top-level directory, and install the required NPM modules:

Erik Schwartz's avatar
Erik Schwartz committed
15
16
17
18
19
20
```bash
cd recfu-mover
npm install
npm test
```

21
Next, copy the example configuration, e.g.:
Erik Schwartz's avatar
Erik Schwartz committed
22
23
24
25
26
27
28
29

```bash
cp ./site-config/client.json.EXAMPLE ./site-config/client.json
```

.. and set `client.json` values as needed.


Erik Schwartz's avatar
Erik Schwartz committed
30
31
## Run

32
33
From this application's top-level directory, run the app using:

Erik Schwartz's avatar
Erik Schwartz committed
34
35
36
```bash
node app.js
```