This repository contains the the logic of dialog planner. It is deployed as a bluemix python application with a NoSQL db database that is supposed to store solutiions generated by planner.
TODO
The root of execution monitor API endpoint is https://hovor-exec.mybluemix.net/
.
Below are the various sub-endpoints and explanation of the services they provide along with necessary input/output to/from them:
Install the dependencies listed in the requirements.txt file to be able to run the app locally.
pip install -r requirements.txt
Run the app.
python remote_main.py
Use a configuration similar to this for the vcap-local.json
file (get credentials from Shubham Agarwal):
{
"services": {
"cloudantNoSQLDB": [
{
"credentials": {
"username":"<user>",
"password":"<pass>",
"host":"<host>"
},
"db_name":"hovor-exec-develop",
"label": "cloudantNoSQLDB"
}
]
}
}
View your app at : http://localhost:8000
Send new messages with curl
:
curl -d '{"user":"haz", "msg":"Toronto"}' -H "Content-Type: application/json" -X POST http://localhost:9000/new-message