Building and Running
The subo command line tool is used again here to build and run your Atmo project.

Building

Inside the important-api directory run:
1
subo build .
Copied!
This automatically compiles each of your Runnables in a Docker container and bundles them together in runnables.wasm.zip to be used in Atmo.
1
⏩ START: building runnables in .
2
ℹ️ 🐳 using Docker toolchain
3
⏩ START: building runnable: helloworld (rust)
4
Updating crates.io index
5
[...]
6
7
✅ DONE: bundle was created -> runnables.wasm.zip @ v0.1.0
Copied!
If you prefer not to use Docker, you can also build your Runnables natively.

Running a development server

Now that we have our application bundle built, we can start a development server. In the important-api directory, run:
1
subo dev
Copied!
This creates a Docker container running Atmo, copies your runnables.wasm.zip into the container, and starts an Atmo server listening on http://localhost:8080.
You can test the /hello route in a second terminal by sending a POST request with a body to it:
1
curl localhost:8080/hello -d 'from the Kármán line!'
Copied!
Last modified 2mo ago
Export as PDF
Copy link