2013-09-08 11:48:48 +02:00
|
|
|
EventSource example
|
|
|
|
===================
|
2013-02-16 02:26:32 -06:00
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
To try this example, you need GNU `make`, `git` and
|
|
|
|
[relx](https://github.com/erlware/relx) in your PATH.
|
2013-02-16 02:26:32 -06:00
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
To build the example, run the following command:
|
2013-02-16 02:26:32 -06:00
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
``` bash
|
|
|
|
$ make
|
2013-02-16 02:26:32 -06:00
|
|
|
```
|
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
To start the release in the foreground:
|
2013-02-16 02:26:32 -06:00
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
``` bash
|
|
|
|
$ ./_rel/bin/eventsource_example console
|
|
|
|
```
|
2013-02-16 02:26:32 -06:00
|
|
|
|
2013-09-08 11:48:48 +02:00
|
|
|
Then point your EventSource capable browser at
|
|
|
|
[http://localhost:8080](http://localhost:8080).
|