Skip to content
Builder106Public

About

Web platform for STAIJA's StepUp Scholars and Dynamerge programs — applications, mentorship, donations, LMS, and public content for STEM students across Nigeria and Africa.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

742 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STAIJA — web platform for Nigeria's STEM scholars and scientist-leaders

Demo Vue TypeScript Firebase Tailwind CSS Vite License

STAIJA

Educational platform supporting Nigeria's future STEM leaders. Manages student scholarship applications, mentorship pairings, course learning, and alumni networks.

The STAIJA home page: a purple gradient hero reading Africa's next scientist-leaders start here, with Apply to StepUp and Explore programs buttons beside an illustration of a student reading.

💡 What is STAIJA?

The Science and Technology Association for Indigenous Jumpstart Advancement (STAIJA) supports students across Nigeria pursuing science, technology, engineering, and mathematics.

This platform supports STAIJA's scholarship programs, StepUp Scholars and Dynamerge. It handles applications, mentor matching, coursework and assignments, and the alumni network.

Live site: staija.org

How it works

A person moves from applicant to student to alumni, and staff make each move:

An applicant submits an application. Staff accept or reject it. An accepted applicant is offered a spot, and can accept, decline, or defer. After they accept, staff enroll them with a mentor and they become a student. When their cohort graduates they become alumni. Rejected, declined, and deferred applicants stay applicants.

An applicant signs up and submits a StepUp Scholars or Dynamerge form, and Mailgun confirms receipt. Staff accept or reject the application. An accepted applicant can take the spot, decline it, or defer to the next cycle. Once they accept, staff enroll them in a cohort with a mentor and their role becomes student. Students and mentors use the LMS for lessons, assignments, sessions, notes, and feedback. When every cohort a student is in has graduated, their role becomes alumni. Edit the diagram.

Side flows (donations via Paystack, newsletter via Mailgun, CMS content from Contentful → Firestore via webhook) feed the same Firestore + Functions backbone.

Demos

Recordings of the E2E demo suite — generated by npm run demo, single-worker headless Playwright with slowMo: 1200 so each beat is readable at 1×.

Public site tour — homepage → programs → about → get involved → contact

Stack

Layer Technology
Frontend Vue 3 + Vite + TypeScript
Auth Firebase Authentication (email/password, Google)
Database Cloud Firestore
File storage Firebase Storage
Backend logic Firebase Cloud Functions (Node 22)
CMS Contentful → mirrored to Firestore via webhook
Email Mailgun (transactional + newsletters)
Payments Paystack (donations)
Hosting Vercel (frontend SPA)

Prerequisites

  • Node 22+
  • Firebase CLI: npm install -g firebase-toolsthenfirebase login
  • A Firebase project on the Blaze plan (required for Cloud Functions; see the infrastructure notes)

Local development

# 1. Install frontend dependencies

npm install

# 2. Copy the env template and fill in your Firebase + Contentful keys

cp .env.example .env

# 3. Start the dev server (http://localhost:5190)

npm run dev

Environment variables

All frontend config is injected at build time via VITE_*variables in.env:

VITE_FIREBASE_API_KEY
VITE_FIREBASE_AUTH_DOMAIN
VITE_FIREBASE_PROJECT_ID
VITE_FIREBASE_STORAGE_BUCKET
VITE_FIREBASE_PUBLIC_BUCKET
VITE_FIREBASE_MESSAGING_SENDER_ID
VITE_FIREBASE_APP_ID
VITE_FIREBASE_MEASUREMENT_ID

VITE_CONTENTFUL_SPACE_ID
VITE_CONTENTFUL_DELIVERY_TOKEN
VITE_CONTENTFUL_PREVIEW_TOKEN
CONTENTFUL_MANAGEMENT_TOKEN
VITE_CONTENTFUL_ENV_ID

VITE_PAYSTACK_PUBLIC_KEY
VITE_NEWSLETTER_ENDPOINT            # subscribeNewsletter URL; blank until deployed
VITE_PUBLIC_MENTORS_ENDPOINT        # getPublicMentors Cloud Function URL (public mentor showcase)
VITE_REFERRER_NAME_ENDPOINT         # resolveReferrerName Cloud Function URL (personalised /stay-connected hero)
VITE_APP_URL

VITE_RECAPTCHA_ENTERPRISE_SITE_KEY  # Firebase App Check site key (public)

The three *_ENDPOINT vars are optional. Each surface degrades to a sensible empty state when its endpoint is unset:

  • VITE_NEWSLETTER_ENDPOINT unset → newsletter forms show an unavailable state

    and do not submit or record a newsletter signup.

Keep VITE_NEWSLETTER_ENDPOINT unset until the Mailgun list exists, MAILGUN_LIST_ADDRESS is set in Firebase Secret Manager, and the exported subscribeNewsletter function is deployed. Use the URL for the matching Firebase project. Do not point production or staging at a guessed or undeployed function URL.

  • VITE_PUBLIC_MENTORS_ENDPOINTunset →/stay-connected's mentor showcase

    renders its "Mentor profiles coming soon" empty state.

  • VITE_REFERRER_NAME_ENDPOINTunset →/stay-connected falls back to the

    generic hero copy even when ?ref=u-<uid> is in the URL.

.envis gitignored. It is only read by the Vite build — Cloud Functions read secrets from Firebase Secret Manager, not from.env.

Cloud Functions

Functions live in functions/ with their own package.json.

cd functions && npm install

Secrets are stored in Firebase Secret Manager (not .env). Before first deploy:

echo -n "<value>" | firebase functions:secrets:set MAILGUN_API_KEY          --data-file -
echo -n "<value>" | firebase functions:secrets:set MAILGUN_DOMAIN           --data-file -
echo -n "<value>" | firebase functions:secrets:set MAILGUN_LIST_ADDRESS     --data-file -
echo -n "<value>" | firebase functions:secrets:set PAYSTACK_SECRET_KEY      --data-file -
echo -n "<value>" | firebase functions:secrets:set CONTENTFUL_WEBHOOK_SECRET --data-file -
echo -n "<value>" | firebase functions:secrets:set REFERENCE_TOKEN_SECRET   --data-file -

See the infrastructure notes for the full secret inventory, the Mailgun sandbox-vs-verified-domain setup, and cost notes.

Tests

npm test             # vitest run (all tests, single pass)
npm run test:watch   # vitest in watch mode

Tests live in tests/. Service-layer tests mock Firebase; component tests use @vue/test-utilswithhappy-dom.

Build & deploy

# Build

npm run build

# Deploy frontend (Vercel picks this up automatically on push to main

# or run manually)

vercel --prod

# Deploy Cloud Functions

firebase deploy --only functions

# Deploy Firestore rules + indexes and Storage rules

firebase deploy --only firestore,storage

User roles

Role Who
applicant Anyone who creates an account
student Accepted and active program participants
alumni Past participants
mentor Assigned mentors
staff STAIJA team (@staija.org email, verified)
admin Full access

License

MIT — see LICENSE.

About

Web platform for STAIJA's StepUp Scholars and Dynamerge programs — applications, mentorship, donations, LMS, and public content for STEM students across Nigeria and Africa.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages