This is a simple AWS sandbox powering https://walls.katriel.co.uk. It does two things:
- scrapes the capacity data out of the Lakeland Climbing Centre live trackers into DynamoDB every five minutes, and
- serves it up on a silly JSON API.
This API is then consumed by public/index.html which renders it into some capacity charts.
To change walls.katriel.co.uk, just push changes to public/index.html and Netlify will serve a static website.
To change the AWS infra, edit the code locally then run make deploy
to push it to prod. You can test the functions with the make local-*
commands (so for example to test the frontend run make local-serve
and then cd public; python3 -m http.server; open localhost:8000
). Note that the DynamoDB backend is whatever you have in your docker container, so if you want better test data run make local-scrape
a few times to populate it.