Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added clearer instructions for starting the server before running the client.
  • Loading branch information
brentvegafederal authored Dec 17, 2024
1 parent a5052b9 commit 5c6ff08
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Examples/hello-world-urlsession-client-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,23 @@ The server can be started by running any of the Hello World server examples loca

## Usage

Build and run the client CLI using:
Start one of the Hello World servers in a different terminal:

```console
% cd Examples/hello-world-hummingbird-server-example
% swift run
2024-12-17T09:54:40-0600 info HummingBird : [HummingbirdCore] Server started and listening on 127.0.0.1:8080
```

or

```console
% cd Examples/hello-world-vapor-server-example
% swift run
2024-12-17T10:34:55-0600 notice codes.vapor.application : [Vapor] Server started on http://127.0.0.1:8080
```

Then, build and run the client CLI using:

```console
% swift run
Expand Down

0 comments on commit 5c6ff08

Please sign in to comment.