React client for the converter-app.
We recomment to use the node version manager to install node.js and npm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
After following the instructions in the installation script, nvm
should be available. The application can then be transpiled using:
nvm install
npm install
npm run build
While developing, the webpack-dev-server
can be used to update the application on-the-fly:
npm run serve
For the production setup, the URL of the running converter-app needs to be provided as environment variable:
nvm use
CONVERTER_APP_URL=https://example.com/api/v1 npm run build:prod
After building the production setup, the files in public
can be copied to the webserver:
rsync -av public/ user@example.com:/var/www/public/
For use of components as npm package there is src/bundle.js that can be built using npm run build:bundle
.
This project has been funded by the DFG.
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under the National Research Data Infrastructure – NFDI4Chem – Projektnummer 441958208 since 2020.