Educational platform supporting Nigeria's future STEM leaders. Manages student scholarship applications, mentorship pairings, course learning, and alumni networks.
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
A person moves from applicant to student to alumni, and staff make each move:
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.
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
| 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 |
| Mailgun (transactional + newsletters) | |
| Payments | Paystack (donations) |
| Hosting | Vercel (frontend SPA) |
- 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)
# 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 devAll 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_ENDPOINTunset → newsletter forms show an unavailable stateand 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 showcaserenders its "Mentor profiles coming soon" empty state.
-
VITE_REFERRER_NAME_ENDPOINTunset →/stay-connectedfalls back to thegeneric 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.
Functions live in functions/ with their own package.json.
cd functions && npm installSecrets 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.
npm test # vitest run (all tests, single pass)
npm run test:watch # vitest in watch modeTests live in tests/. Service-layer tests mock Firebase; component tests use @vue/test-utilswithhappy-dom.
# 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| 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 |
MIT — see LICENSE.
