- 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>
pnpm install
pnpm cmd up
pnpm install
pnpm dev
# 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
}
}
}
- booking website: https://alphabadminton.yepbooking.com.au/
- timezone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
{
"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"
},
}
}