samples/twitter-sentiment-processor/demos/demo2
Ori Zohar 749774906c Initial changes to convert repo to Samples repo 2020-08-13 10:16:28 -07:00
..
processor Initial changes to convert repo to Samples repo 2020-08-13 10:16:28 -07:00
provider Initial changes to convert repo to Samples repo 2020-08-13 10:16:28 -07:00
viewer Initial changes to convert repo to Samples repo 2020-08-13 10:16:28 -07:00
README.md Initial changes to convert repo to Samples repo 2020-08-13 10:16:28 -07:00

README.md

Demo2

provider

processor

Start the service in Dapr with explicit port so we can invoke it later:

dapr run node app.js \
         --log-level debug \
         --app-id processor \
         --app-port 3000 \
         --protocol http \
         --port 3500

Invoke it from curl or another service will look like this:

curl -d '{"lang":"en", "text":"I am so happy this worked"}' \
     -H "Content-type: application/json" \
     "http://localhost:3500/v1.0/invoke/processor/method/sentiment-score"