@@ -5,7 +5,7 @@ title: 🚀 Hello World
55This guide walks you through creating your first asterai component and
66running it in an environment.
77
8- ## Prerequisites
8+ ## 📋 Prerequisites
99
1010- Node.js 18+
1111- An [ asterai account] ( https://asterai.io )
@@ -57,10 +57,10 @@ hello-world/
5757 .gitignore
5858```
5959
60- ### 4. Define the interface
60+ ### 4. Understanding the interface
6161
62- The scaffolded ` component.wit ` already defines a simple interface.
63- Replace ` your-username ` with your asterai username:
62+ The scaffolded ` component.wit ` defines a simple interface. If you're
63+ logged in, the CLI automatically sets your username as the namespace :
6464
6565``` wit
6666package your-username:hello-world@0.1.0;
@@ -79,9 +79,9 @@ world component {
7979This declares a component that exports one function: ` greet ` , which
8080takes a name and prints a greeting.
8181
82- ### 5. Implement the component
82+ ### 5. Understanding the implementation
8383
84- Edit ` component.ts ` :
84+ The scaffolded ` component.ts ` implements the interface :
8585
8686``` ts
8787import * as host from " asterai:host/api@1.0.0" ;
@@ -138,7 +138,7 @@ In another terminal, call your component's function:
138138asterai env call my-env your-username:hello-world hello-world.greet ' "World"'
139139```
140140
141- You should see: ` hello World! `
141+ You should see: ` hello World! ` 🎉
142142
143143### 11. Push to the cloud (optional)
144144
@@ -151,7 +151,7 @@ asterai env push my-env
151151Your environment is now available to run on asterai's cloud
152152infrastructure.
153153
154- ## What's Next?
154+ ## 🎯 What's Next?
155155
156156You've created a component and run it in an environment.
157157From here you can:
0 commit comments