SpeckleLCA is a web app that connects to Speckle and allows for a simple forkflow to calculate LCA results for early phase design projects. The app is still in development and support One Click LCA as well as LCAbyg for now.
There is a devoted Slack workspace for this project where you can chat with all collaborators. (invite link) Discussion regarding direct functionality, bug reports etc should be done in the discussions here on github.
To run the app you will need:
- Node.js has been tested with vesion 16.14.0
- VSCode or a similar text editor (Neovim 😉)
- Set the following enviroment variables
The easiest way is to put them in a.env.local
file in the root folder off the project.
VUE_APP_SPECKLE_ID=CHANGE
VUE_APP_SPECKLE_SECRET=CHANGE
VUE_APP_SERVER_URL=https://speckle.xyz
VUE_APP_SPECKLE_NAME="Speckle LCA"
VUE_APP_LCABYG_USER=CHANGE
VUE_APP_LCABYG_PASSWORD=CHANGE
VUE_APP_ONE_CLICK_LCA_PASSWORD=CHANGE
VUE_APP_ONE_CLICK_LCA_USERNAME=CHANGE
VUE_APP_FIRE_BASE_URL=CHANGE
VUE_APP_FIRE_BASE_API_KEY=CHANGE
- Then run
npm ci
in VSCode or a different terminal
To download and install the required modules. npm run serve
Finally launches the app.
The VUE_APP_SPECKLE_ID
& VUE_APP_SPECKLE_SECRET
values can be genereated by to Prifile -> Developer Settings -> Aæælications on Speckle and creating a new entry.
VUE_APP_LCABYG_USER
& VUE_APP_LCABYG_PASSWORD
are the credentials to the LCAbyg API.
Login to speckle and add app under your account a new application you will get a application ID and a secret ID add thiese to .env.local
.
Run web app locally through npm run serve
Should be able to login now at localhost:8080
If the build or run fails with ERR_OSSL_EVP_UNSUPPORTED
The enviroment variable NODE_OPTIONS needs to be set to --openssl-legacy-provider
like so:
export NODE_OPTIONS=--openssl-legacy-provider