-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Kris Simon edited this page Mar 1, 2026
·
4 revisions
This guide walks you through installing ARO and creating your first application.
- macOS 13.0+ or Linux
- Swift 6.0 or later
git clone https://github.com/KrisSimon/aro.git
cd aro
swift build -c release
sudo cp .build/release/aro /usr/local/bin/mkdir HelloWorld
cd HelloWorld(Application-Start: Hello World) {
Log "Hello, World!" to the <console>.
Return an <OK: status> for the <startup>.
}
aro run ./HelloWorldARO uses contract-first HTTP development. Define routes in openapi.yaml:
HelloAPI/
├── openapi.yaml # Required: Defines HTTP routes
├── main.aro # Application lifecycle
└── handlers.aro # Feature sets matching operationIds
openapi: 3.0.3
info:
title: Hello API
version: 1.0.0
paths:
/hello:
get:
operationId: sayHello
responses:
'200':
description: Success(Application-Start: Hello API) {
Log "Hello API starting..." to the <console>.
Keepalive the <application> for the <events>.
Return an <OK: status> for the <startup>.
}
(sayHello: Hello API) {
Create the <response> with { message: "Hello, World!" }.
Return an <OK: status> with <response>.
}
aro run ./MyApp # Run the application
aro check ./MyApp # Syntax validation
aro build ./MyApp # Compile to native binaryFundamentals
- The Basics
- Feature Sets
- Actions
- Variables
- Type System
- Control Flow
- Error Handling
- Computations
- Dates
- Concurrency
Runtime & Events
I/O & Communication
Advanced