Skip to content

opazupa/sauna-booker

Repository files navigation

Olli's home sauna-booker

Home sauna-booker πŸ“– πŸ“…

Books sauna slots for you automatically based on your preferences when they are published. 🎒

Features πŸ“¦πŸ’₯

  • Book sauna slots (4 weeks inito future) automatically with puppeteer runnning in AWS Lambda
  • Default & Weekly configurable sauna day preferences for booking.
  • Status messages to Telegram πŸ“±
  • Calendar invites to google calendar πŸ“…
  • Serverless framework + Cloudformation for infra.
  • Sentry.io on issue lookout!
  • VS Code dev container for local dev setup 🐳 🐳

Pipelines πŸš€

Sauna Booker CI/CD

Including

  • Build
  • Lint
  • Cloudformation deployment

How to get started πŸ‘‹

Install docker, make & npm beofre continuing

Env variables

After make setup replace your in variables to placeholders in .env.local.

Running locally

# If not already
make setup or npm install

# Invoke the book function
make book

Other commands

Command Description
npm run build Build the serverless stack with typescript
npm run lint Run eslint to check code style

Updating google refresh token

  1. Go to google console to fetch the OAuth client configs
  2. Run make refresh-token
  3. Give consent for google for access and follow instructions
  4. Get the new refresh token from the console.