OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Enhance npm based react app installation procedure. #1674

Open jh-RLI opened 4 weeks ago

jh-RLI commented 4 weeks ago

Description of the issue

Both the of the apps factsheet & oeo_viweer contains a REACT app. The structure of these apps is not harmonised in terms of the folder structure and the setup/installation process in the package.json.

We provide Django management commands to install the REACT apps with a single command. This does not work on all machines, especially machines that have never installed the app. We need to streamline this process and make it more robust.

For each new code update of one of the applications, we need to create the REACT application and then paste the bundle into an HTML Django template. Currently, we have to manually copy the file name into the template.

Ideas of solution

Workflow checklist

jh-RLI commented 4 weeks ago

I will work on the compression & template integration part. Also will have a look at the scss build.