MEASUR (Manufacturing Energy Assessment Software for Utility Reduction) helps manufacturers increase industrial energy efficiency at the plant-level and in specific systems. Learn step-by-step ways to identify opportunities, monitor progress, and improve efficiency in any facility. Some tools help facilities implement an energy management system and prepare to become ISO 50001 and Superior Energy Performance certified. Based on older Department of Energy (DOE) tools, the Advanced Manufacturing Office (AMO) has undertaken this effort to refactor the legacy tools into a modern environment. The suite includes 7 energy system assessment modules, a Data Exploration Module, extensive help text, comprehensive reports, data visualization, and 80 calculators!
- Node.js LTS (https://nodejs.org/en/)
- The MEASUR team recommends managing node versions using Node Version Manager (NVM)
Note: Both /AMO-Tools-Desktop and /AMO-Tools-Desktop/process-flow-diagram-component package.json's must be installed for the project to build successfully.
Use the command below to install them simultaneously, or see the Manual Install section.
npm run install-packages
Change directory to /AMO-Tools-Desktop/process-flow-diagram-component
- Install process-flow-diagram-component dependencies:
npm installChange directory to/AMO-Tools-Desktop - Install Angular project dependencies:
npm install
Note: Build scripts will run /AMO-Tools-Desktop and /AMO-Tools-Desktop/process-flow-diagram-component concurrently
- Serve the web build:
npm run start - Build for electron development with hot-reload:
npm run build-watch- To start the electron app:
npm run electron
- To start the electron app:
- Build the desktop installer:
npm run build-prod-desktopnpm run dist- The package will be placed in
output
- Build the web dist:
npm run build-prod-web
This script will remove /dist, package-lock.json, and node_modules for /AMO-Tools-Desktop and /AMO-Tools-Desktop/process-flow-diagram-component
npm run reset
The repo includes two dependencies which are not part of the core Angular project.
MEASUR depends on this native web component built in React to leverage the ReactFlow library. The process-flow-diagram-component webpack build runs concurrently from commands executed for the main project. The component is copied into the Angular project /dist output and referenced in the Angular project index.html.
Both MEASUR and the Process Flow Diagram Component depend on /process-flow-lib as a shared library of types, calculations, and utility methods.