This Energy Dashboard has been developed by the Oregon State University Sustainability Office to enable members of the OSU community to access, view, and analyze energy consumption trends. The production build of this application can be found at https://dashboard.sustainability.oregonstate.edu. A test build is hosted on an AWS S3 bucket here.
We recommend setting up nvm
to set your node installation to version 18 (nvm use 18
).
Running npm run serve
will run the front-end locally.
To run the serverless backend API locally you'll want to run sam local start-api
(docker will need to be running first).
To backend Jest tests locally:
/backend
directory, run command npm run test-local
/usr/bin/env: 'bash\r': No such file or directory
, you will need to change the file wait-for-it.sh
to have LF line endings instead of CRLF to fix thisRun both in order
npm run prettier
npm run lint --fix
For more detailed information about how the dashboard front-end works internally, there's a README.md with the vue components described under the documents/frontend
directory.