Code Monkey home page Code Monkey logo

cloud-playground's Introduction

Project status

status: inactive

This project is no longer actively maintained, and remains here as an archive of this work.

Introduction

Cloud Playground is a place for developers to experiment and play with some of the services offered by the Google Cloud Platform (http://cloud.google.com/), such as Google App Engine, Google Cloud Storage and Google Cloud SQL. Think of the playground as an easy way to get to know these services, or just quickly try out a new API, without having to download the SDK or having to run appcfg.py update every time you want to test your changes.

About this project

This project contains the source code for the Cloud Playground, so you can see how the playground works, develop your own tools and experiments, or just create your own private playground using an App Engine app id you created.

Try it out!

You can try out the Cloud Playground here:

https://cloud-playground.appspot.com/

https://cloud-playground.googlecode.com/files/cloud-playground-editor.png

Using the source

There are two important projects which together create the Cloud Playground:

  1. mimic is a regular (or "special", depending on how you look at things) Python App Engine app, which serves as a development server (similar to the App Engine SDK "dev_appserver"), but which runs in the production App Engine environment, providing you access to the production APIs and environment while still offering a quick and easy way to test out bits of code.

  2. bliss (this project) is an experimental, trivial browser based code editor which lets edit code in the mimic virtual file system (backed by the App Engine datastore), providing you with a user interface so you can see what the mimic app can do for you.

Creating a private cloud playground

  1. Create an App Engine app id where you will run your own private Cloud Playground

  2. Create a git clone of bliss and its submodules:

```bash
git clone --recursive https://github.com/GoogleCloudPlatform/cloud-playground
cd cloud-playground
```
  1. Modify the the various handlers: sections in the various *.yaml files (app.yaml, playground.yaml etc.) to require admin login (login: admin) and https (secure: always)

  2. Optionally, try running the cloud playground on http://localhost:8080/

```bash
scripts/run.sh
```
  1. Deploy the modified app to the app id you just created
```bash
scripts/deploy.sh --application your-app-id
```
  1. Verify that all the URL handlers are indeed correctly locked down

  2. Have fun!

Other fun places to play

License(s)

Note, the Cloud Playground includes libraries that are licensed under terms other than Apache 2.0.

cloud-playground's People

Contributors

dansanderson avatar fredsa avatar rehmsen avatar silverlinings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloud-playground's Issues

repository '... /GoogleCloudPlatform/appengine-angular-hello-world-python/' not found

What steps will reproduce the problem?
1.git clone --recursive https://code.google.com/p/cloud-playground.bliss/
2.
3.

What is the expected output? What do you see instead?
Expected full clone. Got partial clone with:

remote: Repository not found.
fatal: repository 
'https://github.com/GoogleCloudPlatform/appengine-angular-hello-world-python/' 
not found

What version of the product are you using? 19 Nov 2013
On what operating system? Ubuntu 13.10

Please provide any additional information below.

Looked for the hello repo myself but couldn't find it.


Original issue reported on code.google.com by [email protected] on 19 Nov 2013 at 8:34

Project creation problems

What steps will reproduce the problem?
1. Go to the main page for the playground.
2. Try to create a new project.
3. Try to change project settings (such as project name or project description)

What is the expected output? What do you see instead?
Being able to change is what I would expect.  But I can't

Please provide any additional information below.
Us people who like mercurial can't upload to the playground.
You can't create a project off of nothing.

Original issue reported on code.google.com by [email protected] on 27 Sep 2014 at 12:04

Embedded tab mode layout problem in Firefox

1. Embed Cloud Playground in a page, using a template_url with a project 
between 2 and 5 files, and without show_sidebar=true (to use the tabbed file 
nav).
2. View the page in Firefox (tested in 28 for Linux and 29 for Mac).

Expected: Code editor is full width, with tabs running along the top.
Actual: Tabs are pushing the left border of the code editor to the side, such 
that the code editor is narrow and to the right of the rightmost tab.

Chrome will collapse the bottom margin of the tabs and allow the code editor to 
flow underneath the tabs, just under their border box.  Firefox appears to 
consider the tabs taller than that, and flows the editor to the right.  I made 
a few attempts to force the height of the nav bar or otherwise get the editor 
to clear, but I couldn't get it to work.

Original issue reported on code.google.com by [email protected] on 1 May 2014 at 3:27

Link directly to the code referenced on pages with a "Run/Modify" button

What steps will reproduce the problem?
1. Visit a page with a Run/Modify button such as 
https://developers.google.com/appengine/articles/sharding_counters
2. Click on the button within one of the code snippet areas.
3. Be directed to the Cloud Playground, viewing the first file in the project 
(not the file or line in the file containing the referenced code).

What is the expected output? What do you see instead?

The Cloud Playground should take me directly to the file and line corresponding 
to the referenced code snippet. Instead it takes me to the first file in the 
project.

Original issue reported on code.google.com by [email protected] on 18 Mar 2013 at 9:02

Zip download appears to be broken

What steps will reproduce the problem?
1. Go to cloud playground
2.Copy "App Engine Python 2.7 Hello World" app
3.Open the project
4. Click the Zip button
5. Click Download...

What is the expected output? What do you see instead?

Zip file should download. Instead, there's an error message:


Traceback (most recent call last):

  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)

  File "/base/data/home/apps/s~try-appengine/349f3c4062a2076d652cd1c6f277ebb86f59eb2f.371041699714137584/playground.py", line 461, in get
    project_data = model.GetProjectData(self.project_id, self.tree)

AttributeError: 'DownloadProject' object has no attribute 'tree'


Original issue reported on code.google.com by [email protected] on 23 Oct 2013 at 8:06

Typo

It's Codenvy (NOT Codeenvy).

ImportError: No module named sdkapi

What steps will reproduce the problem?
1.   git clone https://code.google.com/p/cloud-playground.bliss/
  git submodule init
  git submodule update
2. Setup the app id in app.yaml, and uncomment login:admin in mimic.yaml
3. Deploy to server
4. go to appspot page

What is the expected output? What do you see instead?
Expected: The app running on app engine. 
What I saw:

Traceback (most recent call last):
  File "/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 196, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/python27_runtime/python27_lib/versions/1/google/appengine/api/lib_config.py", line 353, in __getattr__
    self._update_configs()
  File "/python27_runtime/python27_lib/versions/1/google/appengine/api/lib_config.py", line 289, in _update_configs
    self._registry.initialize()
  File "/python27_runtime/python27_lib/versions/1/google/appengine/api/lib_config.py", line 164, in initialize
    import_func(self._modname)
  File "/base/data/home/apps/s~enabled-mimic/playground.365614016030911379/appengine_config.py", line 9, in <module>
    from mimic.__mimic import mimic
  File "/base/data/home/apps/s~enabled-mimic/playground.365614016030911379/mimic/__mimic/mimic.py", line 55, in <module>
    from sdkapi import appinfo
ImportError: No module named sdkapi



What version of the product are you using? On what operating system?
master branch at commit 471d36b9a8a810f44157eb9b5fab5ad01ab032b1

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 28 Feb 2013 at 2:53

Issues with "Hello World - Go"

1. Copy "Hello World - Go"
2. Edit "Copy of Hello World - Go" sources
3. Run it

It should run your code and use an url like:

https://5363744850837504-dot-shared-playground.appspot.com

instead it runs the hard coded code and uses a shared url:

https://try-go-demo-dot-cloud-playground.appspot.com/

I noticed the problem in https://cloud-playground.appspot.com running Chrome 
34.0.1847.76 beta.



Original issue reported on code.google.com by [email protected] on 24 Mar 2014 at 2:29

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.