building courseflow: bridging the gap in university academic tracking

lagos

Picture this. It's Week 8 of the semester. A lecturer has just finished teaching CYB401, Ethical Hacking, to a combined class of 200 students from two different programs. She needs to flag a pattern of absences in one group before it gets out of hand.

She opens a WhatsApp group and messages the course rep. The course rep opens a shared Google Sheet that hasn't been properly updated since Week 5. By the time the right information reaches the right person, the semester is almost over.

This isn't a made-up story. It's what happens in universities across the country every week, and it's the problem Courseflow was built to solve.

Tracking That Was Never Built for Universities

Academic tracking in most universities runs on a patchwork of informal tools. WhatsApp groups for messages. Google Sheets for attendance. Email threads for assignments. Each one works fine on its own. Stitched together, they're a mess.

The real problem is that the tools don't match the structure. A university has a specific shape:

  • A faculty has several programs, like Cybersecurity and Software Engineering.
  • A program has cohorts by level, like 400L.
  • A cohort takes courses, and some courses are shared between programs.

Generic tools have no idea any of this exists. They can't tell two groups of students in the same lecture hall apart. And they can't give each person, the lecturer, the course rep and the student, the view they actually need.

So lecturers lose the big picture. Course reps drown in manual data entry. Students chase information through channels nobody trusts. Everyone does more work and still gets worse results.

Why Existing Tools Fall Short

Before building anything, I wanted to be honest about what already exists. There are learning management systems: Moodle, Google Classroom, the institution's own portal. But they're usually built either for the lecturer alone, or for individual students. They rarely think about the middle layer that actually keeps a university running: the course representative.

A course rep is a student elected by their classmates to sit between the cohort and the lecturer. They take attendance, pass on announcements, track who submitted what, and raise problems. They're the backbone of academic communication, and almost no tool is designed for them. They inherit spreadsheets from whoever did the job last year, build their own system from scratch every semester, and hope for the best.

Any real solution had to start with the course rep at the centre.

Built Around the Cohort

Courseflow mirrors how a university actually works, not how a generic productivity tool assumes it works.

Everything in it hangs off one idea: the cohort. A cohort is a specific, bounded group of students, like 400L Cybersecurity, Faculty of Computing, 2024/2025 session. It isn't just a label. It decides what each person can see, manage and change.

  • A course rep is assigned to one cohort. They take attendance, track assignments and post updates for their group only.
  • A lecturer teaches one or more courses, and one course can be linked to several cohorts at once.
  • The bridge between them is the link between a course and a cohort. That's where the platform does its real work.

The course from the opening, CYB401, linked to two 400L cohorts from two programs (for example, Cybersecurity and Software Engineering). Each cohort's course rep sees only their own cohort. The lecturer sees both.

When a lecturer opens a course, they see every cohort taking it. When a course rep opens the same course, they see only their own cohort. No noise from other groups. Just what they need to do the job.

A lecturer's dashboard: the courses they teach, the cohorts enrolled, and the tracking sessions so far.

One course from the lecturer's side: average attendance across cohorts, announcements, and the attendance and assignment trackers.

And this is a course rep's dashboard. The names and numbers in these pictures are sample data.

A course rep's dashboard with sample data: students, courses, attendance sessions and assignments for their cohort.

The Tech Stack

Handling this many relationships while still feeling good to use took careful choices at every layer.

Frontend: Next.js (App Router) and React 18. Server rendering keeps the platform fast on slow connections, which matters at a university. React 18 lets the analytics dashboard load in pieces, so you see data as it arrives instead of staring at a blank screen.

UI: Tailwind CSS and Radix UI, through shadcn. Tailwind let me build and change things quickly without losing consistency. Radix's accessible building blocks mean every modal, dropdown and table works with a keyboard and a screen reader from the start. Light and dark mode work across the whole interface.

Backend: Node.js, Express 5 and TypeScript. TypeScript from end to end wasn't up for debate. Cohorts, courses, users and all the ways they overlap are exactly where type safety catches mistakes at compile time instead of in production. Express 5 handles errors in async code better, which keeps the API layer clean.

Database: PostgreSQL with Prisma. A relational database is a natural fit for cohorts. Link tables, cascading deletes and joins are what it's built for. Prisma keeps the database schema and the code in sync, so changing a relationship doesn't quietly break a query somewhere else.

Here's the heart of the schema. A cohort has one course rep. A course has one lecturer. And courses and cohorts link to each other many-to-many:

// other fields left out
model Cohort {
  department  String
  program     String
  level       Level
  courseRepId String
  courseRep   User     @relation("RepCohorts", fields: [courseRepId], references: [id])
  courses     Course[] @relation("CohortCourses")

  @@unique([program, level, department])
}

model Course {
  code       String   @unique
  lecturerId String
  lecturer   User     @relation("LecturerCourses", fields: [lecturerId], references: [id])
  cohorts    Cohort[] @relation("CohortCourses")
}

Sign-in: JWT and Google OAuth 2.0 through Passport.js. University users expect to sign in with their Google account. Passport makes OAuth simple, and JWTs keep sessions stateless.

Seven tables, 33 API routes, and three roles: lecturer, course rep and student.

Challenges Along the Way

No interesting problem comes without rough edges. Two worth mentioning.

Showing the course-cohort link without confusing people. Courses and cohorts linking many-to-many is powerful, but it can easily confuse people who aren't technical. The design job was to show that in the lecturer's dashboard as clean, readable numbers, not as database rows.

Keeping each role in its lane. A course rep in one cohort must really not be able to see or change another cohort's data. Hiding buttons in the UI isn't enough, because that can be bypassed. The check has to live on the server, in the query itself. Before a course rep can create a tracker, the server looks up the cohort and only finds it if they're its course rep, and it refuses a course that isn't linked to that cohort:

const cohort = await prisma.cohort.findFirst({
  where: {
    id: cohortId,
    OR: [
      { courseRepId: userId },
      ...(joinedCohortId === cohortId ? [{ id: joinedCohortId }] : [])
    ]
  }
});
if (!cohort) return res.status(403).json({ success: false, error: 'Not authorized for this cohort' });

const course = await prisma.course.findFirst({
  where: { id: courseId, cohorts: { some: { id: cohortId } } }
});
if (!course) return res.status(400).json({ success: false, error: 'Course not linked to this cohort' });

Attendance for one lecture, with sample data: each student marked present or absent.

Looking Ahead

Courseflow is meant to grow with the institutions that use it. Next on the list:

  • Student dashboards. Students see their own attendance and submitted assignments, without chasing their course rep.
  • Automatic alerts. Lecturers and course reps hear about it when attendance or submissions drop below a level they set.
  • Sessions and semesters. Institutions set their academic calendar, finished sessions are archived automatically, and course rep assignments carry over to the next cohort.
  • Exports. Department coordinators and heads of department can pull structured reports for accreditation and academic reviews.

The bigger idea is a layer that sits between the generic tools universities use today and the role-based work that actually runs academic life. Not another LMS. Not another spreadsheet. Something built around how universities really operate.

Final Thoughts

The gap between how universities track academics and how they should is surprisingly wide. Not because the software is hard to build, but because most tools aren't designed for the people actually doing the work. The lecturer who needs to see across cohorts. The course rep who needs focused, manageable data. The student who just wants to know where they stand.

Courseflow is an attempt to close that gap, one cohort at a time.

If you work in ed-tech, build software for institutions, or just spent too many semesters watching important information disappear into a WhatsApp group, I'd love to hear what you think. Try the project and let's talk about what better academic tools look like.

https://course-repp-tracker.vercel.app/

older: i inherited a broken codebase. here’s what i found and what i built

first published on medium.

email / github / linkedin / last updated
26/11/26