mirror of
https://github.com/aantron/dream.git
synced 2025-12-31 00:03:52 -05:00
Revise example/1-hello/README.md
This commit is contained in:
parent
bac130fb5d
commit
eead553cbd
@ -6,21 +6,20 @@ let () =
|
||||
Dream.respond "Good morning, world!")
|
||||
```
|
||||
|
||||
It's the absolute minimum Dream server. It just tells you where to point your
|
||||
browser once the server has started:
|
||||
It's the absolute minimum Dream server. It just prints a message to the log at
|
||||
startup, telling you where to point your browser:
|
||||
|
||||
```
|
||||
$ make
|
||||
<pre><code><b>$ make</b>
|
||||
08.02.21 21:17:21.471 Running on http://localhost:8080
|
||||
08.02.21 21:17:21.471 Press ENTER to stop
|
||||
```
|
||||
</code></pre>
|
||||
|
||||
If you go there, to `http://localhost:8080`, you will, of course, see
|
||||
`Good morning, world!`.
|
||||
If you go to [http://localhost:8080](http://localhost:8080), you will, of
|
||||
course, see `Good morning, world!`.
|
||||
|
||||
<br>
|
||||
|
||||
Where to go from here?
|
||||
Next steps:
|
||||
|
||||
- The next example, [**`2-middleware`**](../2-middleware) wraps the app with the
|
||||
logger.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user