- Download and install the Python AppEngine SDK
- Create an application in your SDK client
- Download cosmopolite via the links at left. Unpack it into your local application directory and rename the newly-created subdirectory to "cosmopolite"
- Create an app.yaml file for your application.
- Add a cosmopolite include to your app.yaml file:
includes:
- cosmopolite
inbound_services:
- channel_presence
- Start the application in your SDK client
- Create a test.html page at the top level of your application:
<html>
<head>
<script src="/cosmopolite/static/cosmopolite.js" charset="UTF-8"></script>
</head>
<body>
<script>
// Subsequent script examples go here
</script>
</body>
</html>
- Add a mapping to app.yaml:
handlers:
- url: /test.html
static_files: test.html
upload: test.html
- Remove the mapping for main.app from app.yaml (if using the autogenerated file)
- Retry the examples above using your new test page and your local debug page