This is an orgchart that runs off of the https://files.library.ucdavis.edu which is connected to the orgchart functionality in the https://iam.staff.library.ucdavis.edu/. After uploading to the files server, you make changes to the org chart functionality and push up new bundled functionality from this project.
-
Add an .env file to the root of this project:
-
ORGCHART_SFTP_USERNAME - files.library.ucdavis.edu username for org chart folder
-
ORGCHART_SFTP_PASSWORD - files.library.ucdavis.edu password for org chart folder
-
ORGCHART_SFTP_SERVER - files.library.ucdavis.edu server for org chart folder which should be bnl.library.ucdavis.edu
-
ORGCHART_USE_SFTP - tells whether or not to send the changes to the files.library.ucdavis.edu server
-
PORT - port to run to application
-
-
npm install
in the root directory -
Change the ORGCHART_USE_SFTP to false so they don't go to the files.library.ucdavis.edu server
-
Run a
npm run watch
to reflect changes -
Make changes to the chart in the ./src/components folder which should reflect on localhost in whichever port you choose in .env
Push to https://files.library.ucdavis.edu server without bash:
-
Run an
npm run dist
to bundle code -
Make sure ORGCHART_USE_SFTP is marked true
-
Re-start the server with a
node server.js
Push to https://files.library.ucdavis.edu server:
Run ./transfer_orgchart.sh which:
-
Run an
npm run dist
to bundle code -
Make sure ORGCHART_USE_SFTP is marked true
-
Re-start the server with a
node server.js