Sandboxes for Prototyping Ideas

Programming can be an art, so it’s frustrating when a new idea gets held back by dry paint — er — broken development environments.

With the Next Sandbox, a ready-to-go computing environment is just a click away. This means you can be describing your idea to someone one minute and working on building it in front of them a few seconds later. Plus, when you’re done, you can easily share a URL directly to your sandbox!

Here are some sandboxes can get started with!

Once you’ve launched a sandbox, you’re presented with a code editor and terminal to get started with. So for example, in a Python sandbox, you could put this in a file called server.py:

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

and then run this in your terminal:

pip3 install flask --user
export FLASK_APP=server.py
flask run --host=0.0.0.0

Then go ahead and open up a web browser tab by clicking either of the +s on the screen and selecting a Browser tab. If you navigate to localhost:5000 in your browser, you’ll see “Hello, World!” in your browser!

Or, if you want to jump into a Flask sandbox that has this code ready to go, click below!

1 Like