The following components need to be installed:
Install development and production dependencies with the following commands within your ChronOntology frontend directory
npm install
cp dev-config.json.template dev-config.json
In order to run the frontend in the development server use the following command:
npm start
ChronOntology frontend will access the production backend and is accessible at localhost:8085/. You can use a different backend instance by setting dataUri
and spiUri
in dev-config.json
(for example to http://localhost:4567 in order to use a local development backend).
Any changes made to HTML, SCSS or JS files should automatically trigger a browser reload.
In order to run the e2e tests use the following command:
npm run e2e
The application has to be already running at localhost:8085/: Either by running npm start
in
parallel or by deploying and serving a build at that address via your web-server of choice.
Build the application by running
npm run build
After building, the ChronOntology frontend lies inside the dist directory.