Skip to content

Commit bc1abbc

Browse files
committed
chore: adjust
1 parent 7824d18 commit bc1abbc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/hello_world.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 🚀 Hello World
55
This guide walks you through creating your first asterai component and
66
running 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
6666
package your-username:hello-world@0.1.0;
@@ -79,9 +79,9 @@ world component {
7979
This declares a component that exports one function: `greet`, which
8080
takes 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
8787
import * as host from "asterai:host/api@1.0.0";
@@ -138,7 +138,7 @@ In another terminal, call your component's function:
138138
asterai 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
151151
Your environment is now available to run on asterai's cloud
152152
infrastructure.
153153

154-
## What's Next?
154+
## 🎯 What's Next?
155155

156156
You've created a component and run it in an environment.
157157
From here you can:

0 commit comments

Comments
 (0)