oeplatform
oeplatform copied to clipboard
Enhance npm based react app installation procedure.
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
- [ ] Harmonisation and improvement of the "script" part of package.json, which defines the build steps for the applications
- [ ] Harmonisation of the folder structure
- [ ] Enhance integration of React App & Django templates through the use of django compress module
Workflow checklist
- [ ] I am aware of the workflow in CONTRIBUTING.md
I will work on the compression & template integration part. Also will have a look at the scss build.