# recipes/notify

Two pages of one user hear a send live and mark it read for each other, a device registered from the page, email and push against two fakes, a failed mail kept, a forged write refused, a restart, and a server with no store sending a contact form's mail.

The server half: the notify battery, the auth battery, and one module of the application's own that sends. Everything else is a module in ./modules; the battery's configuration is the file ./modules/notify/Send.ts, which reads where the two services are from the environment.

```sh
PORT=8080 node recipes/notify/backend/main.ts
```

## Files

- [`backend/main.ts`](/docs/recipes/notify/files/backend/main.ts)
- [`backend/modules/notify/Send.ts`](/docs/recipes/notify/files/backend/modules/notify/Send.ts)
- [`backend/modules/orders/Ship.ts`](/docs/recipes/notify/files/backend/modules/orders/Ship.ts)
- [`main.ts`](/docs/recipes/notify/files/main.ts)
- [`page/entry.tsx`](/docs/recipes/notify/files/page/entry.tsx)
- [`page/index.html`](/docs/recipes/notify/files/page/index.html)
- [`page/vite.config.ts`](/docs/recipes/notify/files/page/vite.config.ts)
