Alumni Backend is a database-backed serverless Django application, that uses:
- Django 3.2.6 as the web framework,
- Google Cloud Run as the hosting platform,
- Google Cloud SQL as the managed database (via django-environ),
- Google Cloud Storage as the media storage platform (via django-storages),
- Google Cloud Build for build and deployment automation, and
- Google Secret Manager for managing encrypted values.
Deployment using Terraform.
Alumni API runs as a Cloud Run service.
Using the Python package django-storages
, it's been configured to take a GS_BUCKET_NAME
as a storage place for its media.
Using the Python package django-environ
it takes a complex DATABASE_URL
, which will point to a Cloud SQL PostgreSQL database.
The settings.py
is also designed to pull a specific secret into the environment.
These are all designed to live in the same Google Cloud Project.
In this way, Alumni API runs 1:1:1 -- one Cloud Run Service, one Cloud SQL Database, one Google Storage bucket.
It also assumes that there is only one service/database/bucket.