Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 2.12 KB

File metadata and controls

95 lines (65 loc) · 2.12 KB

Getting Started

Get a Melody app running on your machine in under 5 minutes.

Install the CLI

git clone https://github.com/aspect-build/melody.git
cd melody
swift build -c release
cp .build/release/melody /usr/local/bin/

Verify it's working:

melody --help

Create a project

melody create MyApp
cd MyApp

This generates everything you need:

MyApp/
  app.yaml               # Your app
  screens/                # Screen files
  components/             # Reusable components
  assets/                 # Images and static files
  MyApp.xcodeproj/        # Xcode project (ready to build)
  android/                # Android project

Run it

Open the Xcode project and hit Run:

open MyApp.xcodeproj

You should see a screen with a counter button. That's your starter app — defined entirely in app.yaml.

Start the dev server

In a separate terminal, start hot reload:

melody dev

Now edit app.yaml, save, and watch the app update instantly. No rebuild, no recompile.

You can also target a specific platform:

melody dev --platform ios --simulator "iPhone 16 Pro"
melody dev --platform macos
melody dev --platform ios --device
melody dev --platform android

Your first edit

Open app.yaml.

Try changing the title text to something else, save, and watch it update live.

Validate your YAML

If something looks wrong, run the validator:

melody validate

It'll catch missing fields, duplicate IDs, and common mistakes before you hit runtime.

Next steps