This is the UI for the AI Shop project. It is a React application that uses the api-gateway
to interact with the other services. The user can upload an image of the product they want to sell and see the generated information in a form.
To run the AI Shop UI locally, you need first to build the common module and then start the services. Follow the instructions below in the order they are presented:
-
Ensure that the Eureka Server is running. If not, start the Eureka Server
-
Ensure that the Blob Storage Service is running. If not, start the Blob Storage Service
-
Ensure that the AI Image Processing Service is running. If not, start the AI Image Processing Service
-
Ensure that the Item Category Service is running. If not, start the Item Category Service
-
Ensure that the API Gateway is running. If not, start the API Gateway
-
Start the AI Shop UI in folder
src/ai-shop-ui/
npm install npm start
-
Call the WebApp in the browser: http://localhost:3000/
-
Set the following environment variables:
CONTAINER_REGISTRY_NAME=<your-acr-name> TAG=1.1.0
-
Login to Azure Container Registry
az acr login --name $CONTAINER_REGISTRY_NAME
-
Build the image
docker build -t $CONTAINER_REGISTRY_NAME.azurecr.io/ai-shop-ui:$TAG .
-
Push the image
docker push $CONTAINER_REGISTRY_NAME.azurecr.io/ai-shop-ui:$TAG