Sign inSign up

afritzler/search-conversion

By afritzler

Updated about 5 years ago

Image
0

1.1K

afritzler/search-conversion repository overview

search-conversion

The search-conversion service transforms an SAP Help Portal Search API response into an SAP Conversational AI readable format.

Installation

To run the service locally, first either get it via go get

go get -u github.com/afritzler/search-conversion

or clone the repository.

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion

Usage

Build the app via make and start the service

cd search-conversion
make
./search-conversion

The service will be exposed via http://localhost:8080. The default port 8080 can be changed by setting the PORT environment variable.

export PORT=5000
./search-conversion

Adjust the examples/request.json to your needs and run a curl against either localhost or your corresponding service URL.

curl -vX POST https://YOUR_SERVICE_URL/search -d @examples/request.json \
--header "Content-Type: application/json"

Deploy to CloudFoundry

To deploy the service to a CloudFoundry environment

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
cf push

Deploy to Google AppEngine

To deploy the service to the Google AppEngine

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
gcloud app deploy

Tag summary

Content type

Image

Digest

Size

8.3 MB

Last updated

about 5 years ago

docker pull afritzler/search-conversion