Start coding
Now that you have the code and tools installed, you can jump right in. The quickest way to start playing with Valdi code is through the helloworld app.
Valdi "Hello World"
The source for the helloworld app is located in ./apps/helloworld of the github.com/Snapchat/Valdi repository.
From the root of your Valdi clone, you can build the helloworld Valdi app. Start an emulator/simulator/development device of your choice and use the correct install script for iOS and Android
For Android:
valdi install android
Select the //apps/helloworld:hello_world_android target.
For iOS:
valdi install ios
Select the //apps/helloworld:hello_world_ios target.
Once the build is complete it will launch the helloworld app.
Start the hotreloader
The hotreloader tool will watch for changes to the Valdi source code, recompile, and re-render the application UI with the changed Valdi modules.
valdi hotreload --module hello_world
CLI Reference: For more details on available Valdi CLI commands, see Command Line References.
The hotreloader process will print to the console when it is ready to build your changes:
[3.203] [INFO] Recompilation pass finished, waiting for file changes...
[3.203] [INFO] --------------------------------------------------------