# Host a public demo

Put the demo on a server that other persons can open, with no changes to data on the server.

Source: https://www.eventcatalog.dev/tools/streamview/docs/how-to/host-a-public-demo

Use `--public` to put the demo on a server that other persons can open.

```
streamview demo --public
```

With `--public`, the demo is different in three ways:

- Visitors cannot send events, and they cannot change data on the server.
- The server keeps only the last hour of events. Its memory does not become larger with time.
- The server accepts connections from other computers.

Each visitor can make sets, colors, pins, and notes.
The page keeps them in the browser of that visitor. Other visitors do not see them.

## Host the demo with Docker

Run the container:

```
docker run -p 4747:4747 ghcr.io/event-catalog/streamview demo --public
```

## Put HTTPS before the server

streamview does not give HTTPS. Put the server behind a proxy that gives HTTPS.

## Change the event rate

Add `--rate` with the number of orders for each second. The default is 5.

```
streamview demo --public --rate 2
```

## Host your real events as read-only

`--public` works only with `demo`. For `kafka`, `nats`, and `serve`, use the separate options:

```
streamview kafka --brokers localhost:9092 --read-only --keep 3600 --host 0.0.0.0
```

:::caution
`--read-only` does not hide events. Each person who can open the page can read all events.
:::

## Related

- [Limit how long streamview keeps events](https://www.eventcatalog.dev/tools/streamview/docs/how-to/limit-kept-events)
- [Run streamview in Docker](https://www.eventcatalog.dev/tools/streamview/docs/how-to/run-in-docker)
