Skip to content
All work

Case study 02Internal platform · Admin portal

GAIA

GAIA is MIT World Peace University's official platform for its rural, national, and international immersion programmes. It digitises progress tracking and survey-based report collection. I built the admin web portal, where administrators run programmes, users, forms, and bulk data, and see progress as it happens.

Role
Frontend Developer · led the admin web portal
Context
MIT World Peace University · Jul – Dec 2025
Stack
React, Vite, Tailwind CSS, Axios, JWT, REST APIs
Private codebase

GAIA is university-owned. This case study describes the approach and architecture only; it leaves out source code, endpoints, infrastructure, and any student or staff data.

Roles on one platform: admin, faculty, student
3
Programme types: rural, national, international
3
Performance rating on the university's certificate
Excellent
01

The problem

Immersion programmes send students to rural, national, and international destinations with faculty mentors. Daily activity reports, attendance, and observations were collected on paper and compiled by hand, so administrators only saw progress after the fact. The university needed one platform where admins run programmes, faculty track their groups, and students report from the field.

02

The system

University administrators use the React admin portal, whose Axios client attaches the access token to every request and refreshes it transparently. The GAIA API serves the portal and the faculty and student mobile app. Bulk CSV files are uploaded from the portal straight to cloud storage with a signed URL, and the API processes them asynchronously.

Administratorsadmin · super adminAdmin portalReact · ViteGAIA APIREST · role-scopedMobile appfaculty · studentsFile storagesigned upload URLsBulk importasync processing

Hover, tap, or tab through a component to see why it's in the system.

University administrators use the React admin portal, whose Axios client attaches the access token to every request and refreshes it transparently. The GAIA API serves the portal and the faculty and student mobile app. Bulk CSV files are uploaded from the portal straight to cloud storage with a signed URL, and the API processes them asynchronously.
03

Walk through it

A request, when the session has expired

How the admin portal keeps sessions alive without the admin ever noticing, and what happens when it can't.

  • Portal UI
  • API client
  • GAIA API
  • Session
  1. Load programmes
  2. Request + access token
  3. 401 Unauthorized
  4. Refresh session
  5. New token pair
  6. Store new tokens
  7. Replay request
  8. 200 OK
  9. Data

Press Play, or step through with the arrows (← → work too). Each step explains what happens and why.

04

Key decisions

  1. 01

    Sessions that refresh themselves

    The API uses dual tokens: a short-lived access token and a longer-lived refresh token. A custom Axios response interceptor catches an expired access token, refreshes the session in the background, and replays the original request, so admins are never logged out mid-task. If the refresh token has also expired, local session data is cleared and the user is signed out cleanly.

  2. 02

    Role-gated from the first request

    The web portal admits administrators only; faculty and students use the mobile app on the same API. Within the portal, admins see the programmes and uploads they own while super admins see everything, and first-time users are forced to set a new password before anything else.

  3. 03

    Bulk onboarding that doesn't block the UI

    Students, faculty, destinations, and programmes arrive as CSV files. The portal uploads each file straight to cloud storage with a short-lived signed URL, then triggers processing on the server. Imports run asynchronously, so admins can leave the page and follow each upload from pending to completed or failed.

  4. 04

    Programmes modelled as a lifecycle

    Immersions are split into upcoming, ongoing, and completed views, each paginated and filterable by school, department, programme, and batch. An immersion's page shows its faculty, students, groups and leaders, and how many submissions are still outstanding.

  5. 05

    Reports as configurable forms

    Daily activity reports and problem-identification surveys are forms assigned per immersion to students, group leaders, or faculty. Admins can open any participant's submission, and dashboards roll the results up by school.

05

What shipped

  • Delivered and deployed as the university's official platform for its immersion programmes, replacing paper-based report collection.
  • Administrators manage programmes, users, forms, and bulk imports from one portal, with live dashboards instead of manually compiled reports.
  • Certified by MIT World Peace University, with performance rated Excellent.
  • React
  • Vite
  • Tailwind CSS
  • Axios
  • JWT
  • REST APIs

Contact

Have something worth building? Let's talk.

A question about my work, an idea to pressure-test, or a role you think I'd fit. My inbox is open.

Start a conversation