Skip to content

Client work · Feb 2026 — Present

COLAT

A web platform for managing members, volunteers and pastoral care for Iglesia Cristiana Camino de Libertad y Amor (ICCLA) — in production since April 2026.

  • v1 · Released
  • In production since April 2026
  • Real client: ICCLA
  • Actively maintained
Private client work
// projectcolat
Role
Full-stack developer & sole technical owner
Team
Solo
Client
ICCLA
Period
Feb 2026 — Present
Category
Client work
Code
Private client work

The problem and the value

Iglesia Cristiana Camino de Libertad y Amor coordinates its volunteers, its events and the care it gives to the people it serves across several service teams. Before COLAT, that information was scattered: it got lost, it was hard to look up, there was no record of who did what, and there was no data to base decisions on.

COLAT brings that work into a single web application: people and the teams they serve on, events and attendance, one-on-one mentoring, pastoral care follow-up and prayer requests. Every user sees and edits only what their role allows.

For volunteers

they see only the people assigned to them, log each mentoring session from the browser and read the prayer requests — no spreadsheets, no scattered messages.

For leaders

people, teams, events and attendance in one place, with a dashboard that turns day-to-day records into information for decisions.

For administrators

they control who can access what, and can create or restore database backups from the admin panel without calling for technical support.

The scope came from how the church actually works — its teams, its roles and the sensitivity of pastoral information — not from a generic admin-software template.

My role

Full-stack developer and sole technical owner.

  • Designed the data model, the layered architecture, the per-module permission model and the backup and restore system.
  • Built the entire product: the backend (an 87-endpoint API across 15 modules), the frontend and the production deployment.
  • Maintain the platform: development started in February 2026, in production since April, with improvements and support while the client uses it.
  • Team: I was the only developer.

Architecture

Every request follows a fixed path: perimeter protection, permission checks, and three layers with a single responsibility each — controllers that handle HTTP, services that hold the business rules, and repositories that hold the SQL.

Request flowRequest flowAdminLeaderVolunteerWeb clientReact SPA · JWT on every requestrequestresponsePerimeter protectionhelmet · rate limit · CORSPermission pipelinetoken → permissions → role → ownershipPermissions read from the DB on every requestControllersrequest → service → responseServicesBusiness rules · transactionsRepositoriesIsolated SQL · where the engine change concentratesDatabaseSQLite today · PostgreSQL migratingKey decisionSnapshotsSQLite phase · live copy and restore from the admin panel

One database for the MVP, isolated so it can be swapped

The tension. An MVP has to ship fast and be cheap to operate. A single church generates a low volume of data, far less than a mass-event platform; a separate database server would have added administration and setup the product didn’t need yet.

The decision. For the MVP, the data lives in a single SQLite file inside the same Node process that serves the app. So the product wouldn’t depend on that choice, all SQL is isolated in the repository layer, and multi-step operations (for example, creating a person with several phone numbers and addresses) go through an atomic transaction utility. On top of the single file I built a snapshot system that copies the database without stopping the server and lets admins restore it from the admin panel.

The result. The platform went live in April 2026 with backup and restore as admin actions, not support tickets. The database is now being migrated to PostgreSQL with an external provider (Supabase is the current candidate). It is designed so that change stays within the repositories and leaves services, controllers and permissions untouched; the snapshot concept carries over, and only the code that implements it is adapted to the new engine.

SQLite to PostgreSQL migrationSQLite to PostgreSQL migrationUnchanged by the migrationPermissionsValidationControllersServicesToday · in productionRepositoriesSQL for SQLiteSQLite · single fileSnapshots via VACUUM INTOMigratingRepositoriesSQL adapted to PostgreSQLPostgreSQL · external provider (candidate:Supabase)Snapshots · code adapted to the new engineMigrationDesigned to keep the change within these layersSame concept: restore points from the admin panelSQLite to PostgreSQL migrationSQLite to PostgreSQL migrationUnchanged by the migrationPermissionsValidationControllersServicesToday · in productionRepositoriesSQL for SQLiteSQLite · single fileSnapshots via VACUUM INTOMigrationMigratingRepositoriesSQL adapted to PostgreSQLPostgreSQL · external provider (candidate:Supabase)Snapshots · code adapted to the new engineDesigned to keep the change within these layersSame concept: restore points from the admin panel

Grows module by module

The church’s needs change: new teams appear, and the same person takes on different responsibilities in each one. The system models this with per-module roles — a user can be a leader in one module and a volunteer in another.

Modules and roles are data, not code. Permissions are read from the database on every request, so an access change takes effect immediately — no server restart, no forced re-login. A new module reuses the entire authentication, permission, validation and transaction pipeline; it only brings its own schema, service and repository.

Who can do what, per moduleWho can do what, per moduleAdminLeaderVolunteerPeopleService teamsEvents and attendanceOne-on-one mentoringPastoral carePrayer requestsDashboardUsers and accessDatabase and snapshotsFull accessAssigned onlyRead onlyNo accessEvery permission is a combinationUser×Module×RoleRead from the database on every requestExample: the same userOne-on-one mentoring→LeaderPrayer requests→VolunteerWho can do what, per moduleWho can do what, per moduleAdminLeaderVolunteerPeopleService teamsEvents and attendanceOne-on-one mentoringPastoral carePrayer requestsDashboardUsers and accessDatabase andsnapshotsFull accessAssigned onlyRead onlyNo accessEvery permission is a combinationUser×Module×RoleRead from the database on every requestExample: the same userOne-on-one mentoring→LeaderPrayer requests→Volunteer
Technical detail

1. Permission pipeline. Every route is guarded by a reusable middleware array defined per module. Mentoring and pastoral care add an ownership check: a volunteer can only read or log sessions for the people assigned to them.

Routes → [verifyToken, loadPermissions, checkRole, (ownership)] → Controller → Service → Repository

2. Snapshots on a single file (SQLite phase). Backups are created with VACUUM INTO, which writes a consistent copy while the server keeps serving requests. Restoring closes active connections, swaps the file and reopens the connection; paths are escaped, and every restore or delete requires explicit confirmation. The concept — restore points managed from the admin panel — carries over to the migration; only the code that implements it changes.

Create:  VACUUM INTO '<snapshot>.sqlite'            → consistent copy, no downtime
Restore: close connections → swap file → reopen connection

3. Data model. The person is the center: phones, addresses, service teams, attendance, mentoring, pastoral care and requests all hang off it. System users are a separate entity, because the people who log in are not the same as the people receiving care.

Person ─┬─ Phone
        ├─ Address
        ├─ Server (N:M Ministry)
        ├─ PersonRegister / PersonAssistance (→ EventRegister → Event)
        ├─ Soulmate ─┬─ SoulmateRegister
        │            └─ SoulmateInform
        ├─ UnderCare ── UnderCareRegister
        └─ Intersection   (module "Requests")

User ─── Role
UserModuleRole (User × SystemModule × Role)

Results

Production deploymentProduction deploymentHostinger · shared hostingOngoing maintenancePM2 · process managerNode process · ExpressAPI /api · 87endpointsBuilt frontend ·SPA fallbackcolat_db.sqlite ·current production.sqlite snapshotsVACUUM INTOBrowserUsers by roleAuthorization: Bearer<token>HTTPSExternal providerPostgreSQL ·migrating(candidate:Supabase)MigrationLocal environmentBuild · tsc + ViteDeployment package .zipSSH · production dependency installDone or nearly doneIn development or integrationDesigned or not startedProduction deploymentProduction deploymentBrowserUsers by roleAuthorization: Bearer<token>Local environmentBuild · tsc +ViteDeploymentpackage .zipHTTPSSSH · productiondependency installHostinger · shared hostingOngoing maintenancePM2 · process managerNode process · ExpressAPI /api · 87 endpointsBuilt frontend · SPA fallbackcolat_db.sqlite · current productionVACUUM INTO.sqlite snapshotsMigrationExternal providerPostgreSQL · migrating (candidate:Supabase)Done or nearly doneIn development or integrationDesigned or not started

Platform in production since April 2026. 15 API modules, 87 endpoints and a web UI, used by the church.

Access control. JWT authentication, bcrypt password hashing, rate limiting (stricter on login), security headers and restricted CORS; three roles with per-module permissions.

Backup and restore. Snapshots created and restored from the admin panel.

PostgreSQL migration. In progress, with an external provider (Supabase as the candidate); the change is concentrated in the repository layer.

Ongoing maintenance. Improvements and support since going live.

Next steps: finish the PostgreSQL migration and adapt the snapshot code to the new engine, keeping the same restore-point concept.

Stack

Backend
  • Node.js
  • TypeScript
  • Express
  • Zod
Data
  • SQLite3 (current production)
  • PostgreSQL (migrating)
Frontend
  • React 18
  • Vite
  • TanStack Query
  • Zustand
  • React Router
Security
  • JWT
  • bcrypt
  • helmet
  • express-rate-limit
  • CORS
Operations
  • PM2
  • shared hosting (Hostinger)

🔒 The source code is private: it is a custom build for a client. Instead, this page walks through the architecture, the data model and the key technical pieces.