This app is a lightweight Spin application that serves a small frontend and an API endpoint for sending notifications. It posts random messages to a Discord channel through a configured webhook so you can quickly demo or trigger community updates from a Spin app.
- Node.js
- Rust
- Spin
- Open your Discord server and go to Server Settings > Integrations > Webhooks.
- Click New Webhook, choose the channel to post to, and copy the generated webhook URL.
- Keep this URL secret because it allows anyone with it to send messages to that Discord channel.
From the project root, start the app with Spin and pass the webhook URL as a variable:
spin up --build \
--variable discord_webhook_url="https://discord.com/api/webhooks/your-webhook-id/your-token"This will build both, the frontend and the API component and serve them on your local machine using port 3000.
The OCI artifact of this application is continuously built and pushed to ghrc.io. You can find all available tags here. To run the application using an OCI artifact run:
spin up \
--variable discord_webhook_url="https://discord.com/api/webhooks/your-webhook-id/your-token"
--from docker pull ghcr.io/akamai-developers/spin-discord-notifier:4383a39