See Invoking Legacy Code on Google Cloud Platform.
A Python application on Google App Engine with the Flask micro framework. It demonstrates how to use Google Cloud Pub/Sub to invoke a Windows backend.
- Invoking Legacy Code on Google Cloud Platform.
- Google App Engine Python Standard Environment Documentation
-
Install the App Engine Python SDK. See the README file for directions. You'll need python 2.7 and pip 1.4 or later installed too.
-
Clone this repo with
git clone https://github.com/GoogleCloudPlatform/pubsub-shout-csharp
-
Install dependencies in the project's lib directory. Note: App Engine can only import libraries from inside your project directory.
cd appengine-python-flask pip install -r requirements.txt -t lib
To deploy the application:
-
Use the Google Developers Console to create a new project id.
-
appcfg.py -A <your-project-id> -V 1 --oauth2 update .
-
Initialize the app by visiting https://<your-project-id>.appspot.com/init. This creates a Pub/Sub topic and subscription. New shout requests are written to the topic and read from the subscription. You only need visit this page once, ever. Repeatedly visiting this page will print an error because the resources it creates have already been created.
-
Congratulations! Your application is now live at your-project-id.appspot.com Try entering some text and clicking "Submit." The status will change to Queueing... After 90 seconds, the request will timeout, because we haven't built the backends yet!
Read the readme in the windows-csharp directory.
Star this repo if you found it useful. Use the github issue tracker to give feedback on this repo.
See LICENSE
Jeffrey Rennie