/patwoz-notify

Free to use real-time notification service via web push notifications.

Primary LanguageRust

patwoz-notify

Free to use real-time notification service via web push notifications.

Main purpose is for me to learn rust.

Development

# 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 for this. But you can also use something like Cloudflare Tunnel.

tailscale serve 5173

Now open https://<hostname>.<tailscale-domain>.ts.net

Setup Development

Database

cargo install sqlx-cli
sqlx database create
sqlx migrate run

VAPID

bun x web-push generate-vapid-keys --json
# insert the private and public key into .env

Frontend

cd web/
bun install

Migrations

See sqlx-cli