Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

pmservice/cars-4-you

Repository files navigation

Car Rental Sample Application

Requirements

  • 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.

Deployment

Initial configuration

  1. Clone repository and enter cloned project directory:

    git clone https://github.com/pmservice/cars-4-you.git
    cd cars-4-you
  2. Update with your services credentials the folowing files:

  • vcaps/wml.vcap (Machine Learning service credentials)
  • vcaps/nlu.vcap (Natural Language Understanding credentials).

Deployment and run on local environment

Run:

pip install -r requirements.txt
export FLASK_APP=server.py
flask run

Application will be available at 127.0.0.1:5000.

Deployment and run on IBM Cloud (Bluemix)

  1. Modify manifest.yml by choosing unique name for your host and passing it in place of <your host name>.

  2. Run:

    bx api https://api.ng.bluemix.net
    bx login
    bx app push

Application will be available on bluemix.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •