Tooling UI#
βοΈ Getting Started
This project was bootstrapped with Create React App
β Prerequisites
π§© Setup Local Environment
Dowload all necessary packages to build and deploy the application:
yarn installOpen
.envfiles and setREACT_APP_API_URLto point to services:local: http://localhost:{PORT}
π» Run Locally
Run the app in the development mode:
yarn startOpen http://localhost:8888 to view it in the browser.
π» Setup & Run Docker
This allows us to run the build in a node image and server the app using an nginx image.
The final Docker image will just contain the build folder and nothing else
(the project files were only used by to build the project in the builder layer, which then gets thrown away)
itβs just an intermmediary step.
docker build . -t primeqa_uidocker run --rm --name primeqa_ui -d -p 82:82 primeqa_ui:$(cat VERSION)82 -> public port to access
82 -> container expose port
stop container:
docker stop primeqa_uiremove container:
docker rm primeqa_uiremove image:
docker rmi primeqa_ui