Quick Start

Notification

Set up and test the RawStack notification service locally.

Prerequisites

  • Node.js 20+
  • A Resend API key (email)
  • A Twilio account (SMS)

Steps

1. Install dependencies

cd services/notification
npm install

2. Configure environment

cp .env.example .env

Fill in:

RESEND_API_KEY=re_...
EMAIL_FROM_ADDRESS=noreply@yourdomain.com
TWILIO_ACCOUNT_SID=AC...
TWILIO_AUTH_TOKEN=...
TWILIO_FROM_NUMBER=+1...
WEBSITE_URL=http://localhost:3000

Use OVERRIDE_RECIPIENT_EMAIL during development to redirect all emails to your own address.

3. Build

npm run build

The compiled Lambda handler is output to dist/. Deploy it via the CDK infrastructure stack — the notification service is not designed to run as a standalone HTTP server.

On this page