The project contains an application with the Docs UI page for the Kyma Console. The view enables you to list documentation.
The create-react-app project provides the structure for this application. Read the project's README document for more information.
To install the dependencies, run the npm install
command.
This section describes how to build the application, and to build and publish the image.
Run the npm run prepare
command to download or update the list of documentation topics.
Run the npm run build
command to build the application for production in the build
folder.
The command allows you to bundle React in the production mode correctly, and optimize the build for the best performance.
The build is minified and the filenames include hashes.
Run the following command to build and run the Docker image:
sh ../scripts/build-docker-image.sh docs-ui
docker run --rm -p 8003:80 docs-ui
open http://localhost:8003 or http://localhost:8003/status in a browser
This section describes how to run the application.
Run the npm start
command to start the application in the development mode.
Open the [http://localhost:8003](http://localhost:8003)
link to view it in the browser.
The page reloads if you make edits. If lint errors appear, the console displays them.
Run the npm test
command to launch the test runner in the interactive watch mode.
See the Running Tests section in the Create React App README.md document for more information.