# SMS Notification Service An SMS notification service for [Time Safari](https://timesafari.app) that handles phone number verification and scheduled SMS notifications (daily reminders, activity digests). It authenticates users by forwarding JWTs to an [endorser-ch](https://github.com/trentlarson/endorser-ch) server, stores verified phone numbers and notification preferences in SQLite, and sends messages via Twilio. ## Prerequisites - [Deno](https://deno.land/) v2+ - A Twilio account (optional for development — falls back to console logging) ## Setup ```bash cp .env.example .env # Edit .env with your configuration ``` ## Run ```bash # Development (auto-reload) deno task dev # Production deno task start ``` ## Test ```bash deno task check # Type-check deno task test # Run tests ``` ## Deploy The service is a single Deno process with a SQLite database file. To deploy: 1. Copy the project to your server 2. Set environment variables (see `.env.example`) 3. Run `deno task start` For process management, use systemd, Docker, or [Deno Deploy](https://deno.com/deploy). The SQLite database is created automatically on first run and migrations are applied on startup.