samples/twitter-sentiment-processor/demos/demo2
Yaron Schneider bf1f30ad42
add version field for components (#47)
2021-01-25 14:49:57 -08:00
..
processor add version field for components (#47) 2021-01-25 14:49:57 -08:00
provider add version field for components (#47) 2021-01-25 14:49:57 -08:00
viewer add version field for components (#47) 2021-01-25 14:49:57 -08: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"