Skip to content

bmacphee/leaderboard

Repository files navigation

About

Serverless (s3-sqlite) hosted django application (requires only s3, lambda, api gateway) Inspired by:

https://blog.zappa.io/posts/s3sqlite-a-serverless-relational-database

https://github.com/logandk/serverless-wsgi

Features

  • supports entry of list of drivers and list of tracks
  • supports one "best laptime" entry for each combination of driver and track
  • administrator account (django admin) manages laptimes
  • site visitors see laptimes displayed in tables, one table for each track
  • index displays track list

Future

  • support multiple entries per track and driver

Build and deploy

  • configure AWS environment (and aws cli)
  • then:
./build.sh
./deploy_static.sh

API Gateway config

Two endpoints are needed, both proxied directly to lambda. API gateway config

The lambda function only needs 128MB and it's a really good idea to set the concurrency limit to 1 to prevent losing data in the sqlite write-back if multiple admin users make concurrent edits.

Runtime=Python 3.8 Handler=wsgi_handler.handler

Lambda config

About

django lap-time leaderboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published