- python 3
- pip
- python libs: urllib3, watson-machine-learning-client, cfenv, Flask, watson-developer-cloud
User also should have account on Bluemix with active us-south region. In us-south region the following services should be prepared:
- IBM Machine Learning (wml). Please note that
Lite
(free) plan is offered.
Optional services:
- Natural Language Understanding. Please note that
Lite
(free) plan is offered.
-
Clone repository and enter cloned project directory:
git clone https://github.com/pmservice/cars-4-you.git cd cars-4-you
-
Update with your services credentials the folowing files:
vcaps/wml.vcap
(Machine Learning service credentials)vcaps/nlu.vcap
(Natural Language Understanding credentials).
Run:
pip install -r requirements.txt
export FLASK_APP=server.py
flask run
Application will be available at 127.0.0.1:5000
.
-
Modify
manifest.yml
by choosing unique name for your host and passing it in place of<your host name>
. -
Run:
bx api https://api.ng.bluemix.net bx login bx app push
Application will be available on bluemix.