pmservice / cars-4-you

Apache License 2.0
0 stars 0 forks source link

Car Rental Sample Application

Requirements

User also should have account on Bluemix with active us-south region. In us-south region the following services should be prepared:

Optional services:

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:

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.