Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swisscom/cf-sample-app-python
A sample Flask application to deploy to Cloud Foundry which works out of the box.
https://github.com/swisscom/cf-sample-app-python
cloud-foundry flask python swisscom-application-cloud
Last synced: about 2 months ago
JSON representation
A sample Flask application to deploy to Cloud Foundry which works out of the box.
- Host: GitHub
- URL: https://github.com/swisscom/cf-sample-app-python
- Owner: swisscom
- License: other
- Created: 2016-04-06T11:46:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-29T09:01:00.000Z (over 7 years ago)
- Last Synced: 2023-08-20T08:10:37.062Z (over 1 year ago)
- Topics: cloud-foundry, flask, python, swisscom-application-cloud
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 35
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CF Sample App Python
A sample [Flask](http://flask.pocoo.org/) application to deploy to Cloud Foundry which works out of the box.
## Run locally
1. Install [Python](http://docs.python-guide.org/en/latest/starting/installation/)
1. Install Setuptools and pip (see guide above)
1. Install Virtualenv (acconplish this by running `pip install virtualenv`)
1. Run `virtualenv venv`
1. Run `source venv/bin/activate` on Mac OS X/Linux or`venv\Scripts\activate.bat` on windows
1. Run `pip install -r requirements.txt`
1. Run `python app.py`
1. Visit [http://localhost:3000](http://localhost:3000)## Run in the cloud
1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `cf push my-python-app -m 128M --random-route`
1. Visit the given URL