This application demonstrates a simple, reusable Python web application.
- cd into this project's root directory
- Run
python server.py - Access the running app in a browser at http://localhost:8000
- login to ibm bluemix
- click catalog -> search for python -> deploy python code (https://console.ng.bluemix.net/catalog/starters/python/) -->give your app name and create
- follow the steps given on 'getting started' page
- download the sample app
- now in the server.py file copy server code (definations for requests get,put,post,delete and the run_server code)
- in the manifest file add "buildpack: https://github.com/heroku/heroku-buildpack-python" under the path
- "Requirements files" are files containing a list of items to be installed using pip install we here require web.py to work with python 3 hence the version 0.40.dev0 ===> web.py==0.40.dev0 in requirements.txt
- in your client file have all kind of requests made and add the following --> service="app-name.mybluemix.net"
- now use the command line interface - i)cd to your project directory ii)cf login -u username -o organisation -s space iii)cf push your-app-name iv)once yor instance in running run your client file locally and now any interation or requests made directly goes to your server.py which is now deployed in ibm bluemix.
