Create a Hello World Yanga Project#
Option 1: VS Code Dev Container (Recommended)#
The easiest way to get started is using VS Code with the Dev Container extension. The container includes all build tools (CMake, GCC, Clang, cppcheck) and Yanga pre-installed.
Install VS Code and the Dev Containers extension
Install Docker Desktop or Podman
Install Yanga and create a new project:
pipx install yanga
yanga init --project-dir hello_yanga
Open the
hello_yangafolder in VS Code, then click Reopen in Container when promptedIn the container terminal, build:
yanga run
Note
The yanga init command creates a project with a .devcontainer configuration already included.
For more details about the dev container image, see yanga-devcontainer.
Option 2: Windows (Native)#
On Windows, install Yanga with pipx and create a new project:
pipx install yanga
yanga init --project-dir C:\temp\hello_yanga
cd C:\temp\hello_yanga
yanga run
Note
The yanga run command will bootstrap the build environment and build the project.
Option 3: macOS / Linux (Native)#
If you already have build tools installed (CMake, GCC or Clang), follow the same steps:
pipx install yanga
yanga init --project-dir ~/hello_yanga
cd ~/hello_yanga
yanga run
Tip
Use yanga --help for a list of all available commands.