Helium is a free, color-coded online student planner for classes, homework, grades, and notes.
The backend platform for Helium - Student Planner, including API and worker functionality. Docs for
integrating with the API can be found here.
Released container images are published to Helium's AWS ECR.
- Docker
- Python (>= 3.12)
- MySQL (>= 8)
- Redis (>= 7)
The platform is developed using Python and Django.
This project is configured to work with a Virtualenv within a Docker container. Once provisioned, development can be done offline, as the container built for development includes LocalStack to emulate AWS services locally.
To provision the Docker container with the Python/Django platform build and all dependencies, execute:
makeThis builds and starts two containers, one for the API (named platform-api-1), and one for the Worker
(named platform-worker-1). Once running, the platform API is available at http://localhost:8000, and the
platform Worker is running to execute async and scheduled tasks.
To create an admin user, you can run:
docker exec -it platform-api-1 python manage.py createsuperuserAn admin extends a basic user (when you register from the frontend website) with
access to the admin site.
The shell of containers can be accessed using their name, like:
docker exec -it platform-api-1 /bin/bashBy default, the Docker image will be built for linux/arm64. To build a native image on an x86 architecture
instead, set PLATFORM=amd64.
The platform is split up into several modules, all contained within this repository. The base configuration is
defined under conf. The applications within this project are:
- auth
- common
- feed
- importexport
- planner
There are also some special environment variables that can be set in development or deployment of the project:
ENVIRONMENTdev-localprovisions hosts aslocalhostlocalprovisions hosts aslocalhostfor use outside of Docker (e.g. when using Django'srunservercommand)prodprovisions hosts to be suffixed withheliumedu.com- Any other env name provisions a prod-like hostname with
<ENVIRONMENT>.as the prefix
USE_AWS_SECRETS_MANAGER- Set to
Trueto use AWS Secrets Manager before falling back to environment variables
- Set to
USE_NGROK- Set to
Trueto have pyngrok open angroktunnel and provide a real hostname (only works with Django'srunserveroutside of Docker, and whenENVIRONMENTis notprod)
- Set to
These and other environment variables can be configured in the .env file. This is also where credentials to
third-party services (for example, AWS services like SES) can be set. Do NOT commit real credentials to third-party
services, even in example files.
Before commits are made, be sure to run the checks and tests, and check the generated coverage report.
make check
make testSettings are read from environment variables in conf/configs/common.py and
conf/configs/deploy.py, with defaults that point at Helium's own domains and services.
The ones a school running its own platform most likely needs:
PROJECT_API_HOST,PROJECT_FLUTTER_APP_HOST,PROJECT_LANDING_HOST: your own URLsPLATFORM_EMAIL_DOMAINandPLATFORM_EMAIL_HOST*: your email domain and SMTP server (email is required to sign up)PLATFORM_AWS_S3_BUCKET_PREFIX: your own bucket namesPROJECT_SERVE_LOCAL=True: keeps static and media files on local disk instead of S3PLATFORM_FIREBASE_*: optional; without it, only email and password sign-in is offered and reminders are sent by email.PLATFORM_OAUTH_PROVIDERSlimits sign-in to some of Google, Apple, and MicrosoftADMIN_ALLOWED_DOMAINS: email domains allowed into the admin site
Helium's monitoring, analytics, and support integrations (Sentry, Google Analytics, Datadog, CloudWatch, Jira
Service Management) are configured in the same files, and none is required. Without Jira Service Management, the
support contact form asks people to email support@ instead. Emails still link to Helium's support site.
If you deploy your own instance, we'd love to hear about it at contact@heliumedu.com. We can tell you about security fixes and release changes, and route any of your users who reach Helium's support to you.
To provision the infrastructure, see infra. To build an
app against your platform, see the frontend's README.
The frontend is served from a separate repository and can be found here.
The frontend and platform containers can be started alongside each other to almost entirely
emulate a prod-like environment locally. For functionality that still requires Internet-connected external
services (e.g. emails and text messages), provision the dev-local Terraform Workspace,
which is meant to work alongside local Docker development.
Auto-generated API documentation is accessible via any environment at /docs.
Translations are done on Crowdin; to help, see
TRANSLATING.md. User-facing strings are wrapped
in gettext; after changing them, run make build-messages to update helium/locale/en/LC_MESSAGES/django.po.
make check fails while the catalog is out of date or any django.po translation is incomplete.



