Building a Bundle
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:
1
subo build .
Copied!
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:
1
> subo dev
Copied!
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.
Continue on to learn how to operate Atmo in real-world scenarios.
Last modified 2mo ago
Export as PDF
Copy link