Here we will outline the process to deploy this solution on your local workstation.
Install the following packages:
- Docker
- Windows, use Docker Desktop
- Mac, use Docker Desktop
- Linux, use Docker Engine
If on RHEL, Fedora, CentOS or Rocky Linux you may use Podman which is already installed. Though you will need to also install podman-compose.
- Git
Only required on Linux and Mac. For Windows see step 4 below.
- Create the desired corresponding Watson API service, then collect the service credentials.
- Clone the Git repository.
git clone https://github.com/Call-for-Code/Watson-API-Playground.git
- Change to the
ui
folder under Watson-API-Playground repository.cd Watson-API-Playground
- Edit the file
deployment/docker/docker-compose.yaml
adding the Watson API service credentials for the following environment variables.- SERVICE_BASE_URL
- API_KEY
- Start the application
Add
--build
if a rebuild the base image is necessary. The first run will build the image.
A restart of the container is necessary to pick up changes outside thesrc
directory.- Docker
docker compose -f deployment/docker/docker-compose.yaml up
- Podman
podman-compose -f deployment/docker/docker-compose.yaml up
- Docker
In your browser, navigate to the following URL:
http://localhost:8080