Skip to content
← All work

BACKEND / API / INFRASTRUCTURE

ReportUs Backend

The API and data layer under the reporting platform

Role
Backend engineering
Platform
Node.js service
Year
2026
Category
PRODUCT / STARTUPS
API architecture and request flow diagram

Overview

The service layer behind the reporting product: an Express API over MongoDB handling authentication, report ingestion, image upload and rate limiting, with an integration test suite that runs against an in-memory database.

The problem

Reports arrive with photographs from mobile connections, which means uploads have to be streamed off the API process, and a public submission endpoint has to survive abuse.

The approach

Multer streams uploads straight into Cloudinary rather than through local disk, JWT sessions gate the write paths, and express-rate-limit fronts the public endpoints. Jest and Supertest run the whole surface against mongodb-memory-server so the suite needs no live database.

What it does

  1. 01JWT authentication with bcrypt password hashing
  2. 02Direct-to-Cloudinary media pipeline via multer storage adapter
  3. 03Rate limiting on public submission endpoints
  4. 04Mongoose schema and index layer over MongoDB
  5. 05Integration tests against an ephemeral in-memory MongoDB
  6. 06Postman collection maintained alongside the API

Screens

Endpoint map and data flow

Engineering

Stack

  • Node.js
  • Express 5
  • MongoDB
  • Mongoose
  • JWT
  • bcrypt
  • Cloudinary
  • Multer
  • Jest
  • Supertest