Skip to content

Active

MisPartidos

A serverless web app that emails you when LaLiga confirms the date and time of your favourite teams' matches.

Read this in Español

Context

This app solves one specific problem: finding out when the official date and time of a LaLiga match is confirmed, and putting it in your calendar.

What it does

You sign up, choose your favourite teams and get an email only when the official schedule of one of their matches is confirmed. From that email you can add the match to your calendar with one click, or mute a team without logging in. The website also lists upcoming matches.

Architecture

The whole application is serverless on AWS and defined with Terraform.

  • A scheduler runs every hour during the day and calls a Lambda function that reads the official LaLiga API and stores the matches in DynamoDB.
  • When a match gets a confirmed time, another function sends the alert by email through SES, only to the users who follow those teams.
  • Amazon Cognito handles sign-up and login, with Google as an additional provider.
  • The website is a static single-page app served from S3 and CloudFront, and it is regenerated from the data.
  • A small API behind API Gateway manages favourite teams and the account, protected by Cognito.

Engineering decisions

  • Static site, small API. The pages are generated from the data and served from the CDN, and only per-user actions go through an API.
  • Alert only on confirmation. The system detects the change from “date to be confirmed” to a firm time and notifies once, which keeps the emails useful.
  • Make unsubscribing painless. Each email carries a signed, expiring link to mute a team and a standard unsubscribe header.
  • Care for personal data. Email addresses are obfuscated in logs and users can delete their account.
  • Harden the front end. Strict security headers, a restrictive CORS policy and API throttling, with text contrast kept at WCAG AA level.

← All projects