This app serves as the minimal RSG 2.0 SDK app. It demonstrates the scaffolding produced by npx rk create.

Purpose

This app is a reference for the smallest correct app setup. It includes one anchor node (BaselineApp) that renders a centered title and subtitle. The app registers the node in index.ts and mounts it under the compiled BaseAppScene.

You can use this app as the starting point for new apps and as a baseline for the project structure, which includes the following:

  • roku-config.ts
  • tsconfig.json
  • src/
  • Compiled components

Summary

This example covers the following:

  • A minimal anchor node that returns a static SceneGraph layout (LayoutGroup and Label)
  • The standard main() to registerAnchorNode() bootstrap in index.ts
  • The project and configuration layout for a new RSG 2.0 SDK app

Development

To build, test, and lint the app, run these commands:

npx rk dev          # Build + deploy to Roku device
pnpm test           # Run tests
pnpm run lint       # Lint sources

Did this page help you?