Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(cookbook): hello-world-tutorial
  • Loading branch information
olapinska committed Oct 15, 2018
commit 4d2794a21df3f8af991197b36bbd3a135df3f19b
16 changes: 15 additions & 1 deletion docs/cookbook/web/basics/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create `hello-world` Socket and `hello` endpoint with simple response.
#### Create Hello World Socket

```sh
npx s create hello-world --template empty
npx s create hello-world
```

#### Create endpoint file
Expand Down Expand Up @@ -46,3 +46,17 @@ and call it using your browser or any other HTTP client:
```sh
curl https://bitter-sound-5197.syncano.space/hello-world/hello/
```

To check the socket enter the arguments after `/`:
Comment thread
olapinska marked this conversation as resolved.
Outdated

```
https://bitter-sound-5197.syncano.space/hello-world/hello/?firstname=James&lastname=Smith
```

You should get an answer:

```
{
"message": "Hello James Smith!"
}
```