Skip to content

ComPlat/chemotion-converter-client

Repository files navigation

converter-client

React client for the converter-app.

Development setup

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

Production setup

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/

npm package

For use of components as npm package there is src/bundle.js that can be built using npm run build:bundle.

Acknowledgments

This project has been funded by the DFG.

DFG Logo

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under the National Research Data Infrastructure – NFDI4Chem – Projektnummer 441958208 since 2020.