Skip to content

Subscribe to court and time, this service will notify you via email if it become available.

Notifications You must be signed in to change notification settings

GeekEast/alpha-badminton-booking-alert

Repository files navigation

Badminton Booking Alarm

Set Gmail SMTP

  • enable IMAP in Gmail Settings
  • enable 2FA password
  • create app password
# for docker
cp .env.example .env.docker
# for host
cp .env.example .env.local

# update SMTP
SMTP_HOST="smtp.gmail.com"
SMTP_USER=<YOUR_EMAIL>
SMTP_PASS=<APP_PASSWORD>

Run In Docker

pnpm install
pnpm cmd up

Run In Host

pnpm install
pnpm dev

Create Subscription

# goto http://[::1]:8194/api/ap-southeast-2/graphql
mutation BBAAddSubscription($subscription: BBAAddSubscriptionDto!) {
  BBAAddSubscription(subscription: $subscription) {
    id
    start
    end
    user {
      firstName
      lastName
      email
      timezone
    }
    court
    enableEmail
    lastEmailSentAt
    interval
    createdAt
    updatedAt
    archivedAt
    tags {
      name
      value
    }
  }
}
{
  "subscription": {
    "enableEmail": true,
    "interval": 30,

    "court": "18",
    "year": 2024,
    "month": 4,
    "day": 18,
    "startHour": 18,
    "endHour": 22,

    "user": {
      "email": "<your email>",
      "firstName": "firstName",
      "lastName": "lastName",
      "timezone": "Australia/Sydney"
    },
  }
}

About

Subscribe to court and time, this service will notify you via email if it become available.

Topics

Resources

Stars

Watchers

Forks