Skip to content

Commit

Permalink
docs: Update steps to run examples in sbt
Browse files Browse the repository at this point in the history
The documented steps were outdated, this commit corrected them.
  • Loading branch information
lackhoa authored Sep 24, 2023
1 parent 0f7b6a7 commit c52c2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ object HelloWorld extends ZIOAppDefault {

## Steps to run an example

1. Edit the [RunSettings](https://github.com/zio/zio-http/blob/main/project/BuildHelper.scala#L107) - modify `className` to the example you'd like to run.
2. From sbt shell, run `~example/reStart`. You should see `Server started on port: 8080`.
1. Set the [main application to execute in the example project](https://github.com/zio/zio-http/blob/main/project/Debug.scala).
2. From sbt shell, run `project zioHttpExample` -> `~reStart`. You should see `Server started on port: 8080`.
3. Send curl request for defined `http Routes`, for eg : `curl -i "http://localhost:8080/text"` for `example.HelloWorld`.

## Watch Mode
Expand Down

0 comments on commit c52c2a7

Please sign in to comment.