← BACK TO THE WORK
FIELD NOTES / EZ-ALLOCATE2023 / COLLEGE TEAM PROJECT

A fair workload.
A clearer picture.

A college team project tackling a real faculty workload allocation problem. Coordinators could match faculty preferences to subjects, assign teaching hours with validation, and export the resulting allocations.

Explore the repository (opens in a new tab)
CONTEXT
Collaborative college project
TOOLS
React · Node.js · Django REST Framework · Celery · Redis · Docker
EZ-ALLOCATE / SERVICE BOUNDARIESTEAM PROJECT · 2023
ReactDjangoAuthRedisCeleryDBcoordinatorallocation rulesCSV workersigned JWTallotments
Validate in the API. Generate reports outside the request.
01

Constraints make
it real.

Faculty preferences are only one part of the problem. Every assignment also has to fit a teacher’s workload and the lecture, tutorial, and practical hours available for the subject.

  • Teacher workload. A configurable cap, defaulting to 14 hours per week.
  • Subject budgets. Lecture, tutorial, and practical hours are checked independently.
  • The first lecturer rule. The first teacher receiving lecture hours also receives at least one tutorial and one practical hour, when those exist for the subject.

The allocation API validates these rules in Django REST Framework serializers. The dashboard supports coordinators in making the assignments; this is not presented as an automatic scheduling optimizer.

02

Separate services.
Shared trust.

Our DevOps specialization influenced the decision to use microservices. A Node.js authentication service manages accounts, while Django handles allotment data and validation.

Authentication signs RS256 JWTs with a private key. Django verifies them using the public key, so it does not need to call the authentication service for every request. Docker secrets supply the keys at runtime.

That separation also brought extra deployment and coordination work—a deliberate part of a college project shaped by our specialization.

03

Don’t make a
report a roadblock.

CSV generation scans the allocation data. Instead of holding the web request open, Django enqueues a Celery task and returns a task ID. Redis carries the job to a worker.

Request export→Queue & worker→Download CSV

The worker stores the generated file in the database. The client polls for task completion, then follows the download link. The interactive request stays separate from the report-generation work.

04

A team effort,
together.

EZ-Allocate was built as a college team project. The work spans the system as a whole: the interface, the services, and the workers that make allocations and exports possible.

FOLLOW THE NEXT CONNECTIONExplore LetzGo ↗