A Tour of Wave
Your Wave release download ships with over 150 examples.
You can play around with these examples in your browser using tour.py
, a Python script (itself a Wave app) located in examples/
:
To run the tour, as with any Wave app, we need to start both the Wave server (wave
) and the tour (tour.py
). Let's go ahead and do that.
Step 1: Start the Wave server
To start the Wave server, simply open a new terminal window execute wave
(or wave.exe
on Windows).
The Wave server should now be running at http://localhost:55555.
Don't close this terminal window!
To run any Wave app, you need the Wave server up and running at all times. Your web browser communicates with the Wave server, and the Wave server in turn communicates with the Wave app.
Step 2: Run the tour
To run the tour, create a virtual environment, install the tour's dependencies, and finally execute tour.py
.
important
Do this from a new terminal window!
On Windows:
Step 3: Enjoy the tour
Go to http://localhost:55555/tour to access the tour.
tour.py
is an ordinary Wave app that runs other apps. The tour itself runs at the route /tour
, and each of the examples runs at /demo
.
tip
To play with the tour's active example in isolation, simply open a new browser tab and head to http://localhost:55555/demo.
Wrapping up
In this section, we started the Wave server and then launched tour.py
to experience the tour. In general, this is how you'd typically launch any app, including your own. There is nothing special about tour.py
. In fact, to run any example, all you need to do is repeat the steps above in a new terminal window. For example, to run todo.py
, simply run:
You can now access the example at http://localhost:55555/demo. Simple!