ChatQnA UI Welcome to the ChatQnA UI project! This guide will help you set up and run the ChatQnA UI application using Docker or, npm. Follow the steps below to ensure a smooth deployment process.
Note: This README is helpful if you only want to run the UI services and you already have the Backend and Data prep service endpoint. If you want to run all the services then you should read this README.
Prerequisites Before you begin, ensure you have the following installed on your machine:
Docker (if running with Docker) npm (if running without Docker) Backend service endpoint Data prep service endpoint Setup Instructions Step 1: Update the .env File To run the UI locally, update the .env file located in the ui/react directory of the project. Add the following environment variables with the appropriate endpoint values:
VITE_BACKEND_SERVICE_ENDPOINT=http://$HOST_IP:8100 VITE_DATA_PREP_SERVICE_URL=http://$HOST_IP:8000 Running with Docker Step 2: Build the Docker Image Navigate to the root directory ui/react of the project and build the Docker image using the following command:
docker build -t <docker_image_name> . Step 3: Run the Docker Container To run the Docker container, use the following command:
docker run -p <your_port>:80 <docker_image_name> Replace <your_port> with the port number you want to use for accessing the UI.
Upon successfully executing this command, you can access the UI services at the URL displayed in the terminal, typically http://localhost:<your_port>.
Content type
Image
Digest
sha256:1d71e731c…
Size
80.4 MB
Last updated
1 day ago
docker pull intel/chatqna-uiPulls:
144
Last week