Skip to content
HS.
← All work

Enterprise Software · Backend Engineering

Logistics Management Platform

Shailshuta Logistics

A logistics management platform for shipment tracking and customer operations. The work centred on the API and data layer: 20+ REST endpoints, a Prisma/PostgreSQL schema, and JWT authentication with route-level role checks.

Client work — source is under NDA.

Role
Full Stack Developer Intern
Context
Client work · TechPlek Technologies
Timeline
Dec 2025 — Jun 2026

Scope

  • Shipment management
  • Shipment tracking
  • Customer operations
  • JWT + RBAC
  • REST API
  • Linux deployment

Problem

Shipment tracking and customer operations needed a consistent API and a relational source of truth. Admin and customer surfaces also needed to be scoped by role rather than relying on the UI to hide actions.

Approach

Built REST endpoints in Node.js and Express.js for shipment tracking and customer operations. Prisma models the PostgreSQL schema. JWT authentication and route-level middleware enforce role-based access to endpoints and dashboard views. The services run on Linux staging under PM2 with log rotation and error alerts.

Architecture

A React and TypeScript client calls an Express REST API. Route-level middleware validates the JWT and checks the caller's role before a controller runs. Prisma handles PostgreSQL access, and the Node.js services are supervised by PM2 on Linux staging with log rotation and error alerts.

Client

01
  • React
  • TypeScript
  • Dashboard views

API

02
  • Node.js
  • Express.js
  • REST
  • JWT + RBAC middleware

Data

03
  • PostgreSQL
  • Prisma
  • Shipment records
  • Customer operations

Operations

04
  • Linux staging
  • PM2
  • Log rotation
  • Error alerts
Logistics Management Platform — system map, from interface to runtime.

Key decisions

  1. 01

    PostgreSQL + Prisma for shipment data

    Shipment and customer records are relational. Prisma keeps the schema explicit and the query layer typed instead of spreading raw SQL across controllers.

  2. 02

    Authorization at the route level

    JWT validation and role checks live in middleware, so an endpoint is protected even when it is called directly rather than through the dashboard.

  3. 03

    PM2 on Linux staging

    PM2 provides process supervision and a predictable restart path for the Node.js services during staging deployments.

  4. 04

    Make failures visible

    Log rotation keeps logs manageable, and error alerts surface service failures instead of relying on someone checking a terminal.

Challenges & solutions

  • Role checks had to hold across endpoints and dashboard views.

    Applied JWT and role checks in route-level middleware, then verified each surface against the role it was meant to serve.

  • Shipment and customer data span multiple related records.

    Modelled the relationships in Prisma and kept the API responses shaped around the operations the dashboards actually perform.

  • Staging services needed to stay observable.

    Ran Node.js services under PM2 with log rotation and error alerts so failures were visible without manual log checks.

  • REST endpoints needed consistent behaviour.

    Kept request handling and validation close to the route, with Prisma queries isolated in the data layer.

Outcomes

  • Built 20+ REST API endpoints for shipment tracking and customer operations.
  • Implemented JWT authentication and role-based access control with route-level middleware.
  • Protected endpoints and dashboard views according to user roles.
  • Deployed and monitored Node.js services on Linux staging using PM2.
  • Configured log rotation and error alerts for service visibility.

Stack

  • React
  • TypeScript
  • Node.js
  • Express.js
  • PostgreSQL
  • Prisma