Back to portfolio

2025-12-06

Building an Offline-First NGO Site with Admin-Controlled Content

How to build a simple NGO website that works offline and lets admins manage content easily.

Goal:

  • Works with poor internet
  • Non-technical admin can update content

Architecture

Frontend:

  • React PWA

Backend:

  • Node + MongoDB

1. PWA Setup

  • Cache static assets
  • Cache API responses
  • Offline fallback

2. Store FAQs as data

{
  "question": "How to apply?",
  "answer": "Fill the form...",
  "category": "Application",
  "published": true
}

No hardcoding.

3. Admin Panel

Keep simple:

  • Add/Edit/Delete
  • Publish toggle
  • Category selection

4. Sync Strategy

Online:

  • Fetch latest data

Offline:

  • Serve cached data

Conflict:

  • Last write wins

5. Search

  • Store lowercase
  • Add keywords
  • Client-side filtering

6. Deployment

  • Simple hosting
  • Minimal infra
  • Add logging

What mattered

  • Simplicity
  • Reliability
  • Admin usability

If admin cannot use it, system fails.

Building an Offline-First NGO Site with Admin-Controlled Content | Sabin Kharel