https://github.com/patlux/patwoz-notify
Free to use real-time notification service via web push notifications.
https://github.com/patlux/patwoz-notify
learning-by-doing rust
Last synced: 3 months ago
JSON representation
Free to use real-time notification service via web push notifications.
- Host: GitHub
- URL: https://github.com/patlux/patwoz-notify
- Owner: patlux
- Created: 2023-12-09T00:23:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-20T01:22:01.000Z (about 1 year ago)
- Last Synced: 2025-03-07T01:47:19.683Z (3 months ago)
- Topics: learning-by-doing, rust
- Language: Rust
- Homepage: https://patwoz.dev
- Size: 946 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# patwoz-notify
Free to use real-time notification service via web push notifications.
Main purpose is for me to learn rust.
## Development
```sh
# backend (http://localhost:3000)
cargo run# frontend (http://localhost:5173)
cd web/
bun run dev
```**iOS, Android**
To test it locally on your phone while developing, you need a valid ssl certificate to be able to use web push notifications.
I'm using [tailscale serve](https://tailscale.com/kb/1242/tailscale-serve/) for this. But you can also use something like [Cloudflare Tunnel](https://www.cloudflare.com/products/tunnel/).
```sh
tailscale serve 5173
```Now open https://``.``.ts.net
## Setup Development
**Database**
```sh
cargo install sqlx-cli
sqlx database create
sqlx migrate run
```**VAPID**
```sh
bun x web-push generate-vapid-keys --json
# insert the private and public key into .env
```**Frontend**
```sh
cd web/
bun install
```## Migrations
See [sqlx-cli](https://github.com/launchbadge/sqlx/blob/main/sqlx-cli/README.md)