Creating a Project
With subo installed, you can now create a project:
1
subo create project important-api
Copied!
The project contains two important things: a Directive.yaml file, and an example Runnable called helloworld written in Rust. The Directive file defines route handlers and connects Runnables to them.

Overview

In the Directive file, you'll see a handler set up for you that serves the POST /hello route using the helloworld Runnable:
1
# the Directive is a complete description of your application, including all of its business logic.
2
# appVersion should be updated for each new deployment of your app.
3
# atmoVersion declares which version of Atmo is used for the `subo dev` command.
4
5
identifier: com.suborbital.important-api
6
appVersion: v0.1.0
7
atmoVersion: v0.2.3
8
9
10
handlers:
11
- type: request
12
resource: /hello
13
method: POST
14
steps:
15
- fn: helloworld
Copied!
Last modified 1d ago
Export as PDF
Copy link
Contents
Overview