Build your Application
To run your Atmo application, we need to create a Runnable Bundle.
A Bundle is a .wasm.zip
file that includes your Directive, along
with all of your Runnables compiled to WebAssembly modules. Bundles
are built using subo
.
Note that you should pass the root of your Atmo project as the first argument:
subo build .
note
If building the example project with subo from the root of the repository, pass the directory: subo build ./example-project
The end of this command should read:
✅ DONE: bundle was created -> ./runnables.wasm.zip
Running the Atmo development server
Once you have your Runnable Bundle, you can run Atmo:
subo dev
Atmo will start up serving on port 8080, and you will begin to see its structured logs in your terminal.
note
Check Docker to ensure only Atmo is running on the port or else the Atmo developement server will not start correctly.
Make a request to POST localhost:8080/hello
with a request body to see it in action.
The version of Atmo being run by subo dev
is dictated by the atmoVersion
key in your Directive.