This repository contains set of basic wave examples that anyone that start development of interacting applications using H2O wave.
- Python 3.7+
- pip3
To setup the environment to wave application development execute below command. This basically creates a python virtual environment for your development, activates it and finally install h2o_wave library to be used for the wave app development.
python3 -m venv venv
source ./venv/bin/activate
./venv/bin/pip install h2o-wave
To run hello world example execute following command in the command line.
./venv/bin/wave run hello_world.py
Once you run this command, It will start the wave server and hello world wave application. It will create card with content of Hello World. You can access the application by navigating to http://localhost:10101/
./venv/bin/wave run hello_world.py
Once you run this command, It will start the wave server and hello world wave application. It will create card with content of Hello World. In another terminal, run script.py to publish the content to wave server.
./venv/bin/python3 script.py
You can access the application by navigating to http://localhost:10101/
To run try out basic user interaction example execute following command in the command line.
./venv/bin/wave run basic_user_interaction.py
You can access the application by navigating to http://localhost:10101/
To run try out basic routing example execute following command in the command line.
./venv/bin/wave run basic_routing.py
You can access the application by navigating to http://localhost:10101/
H2O Wave has very rich documentation which covers all of these concepts. Documentation is available here