
Al Barq
Courier and shipping platform for a logistics company in Iraq, with branches and drivers.
Software EngineerContractRemoteOct 2023 – Sep 2024
Highlights
- Replaced a legacy PHP system with a new TypeScript, Express, Prisma and PostgreSQL backend (100+ routes, Swagger, Docker) for a React web client and a mobile app, with JWT auth and roles.
- Modeled the business in 36 Prisma models: companies with branches, warehouses and locations, clients and stores, 11 employee roles from company manager to delivery agent, and orders with timelines, receipts and products.
- An order lifecycle with 12 statuses, from registration through the receiving and delivery agents to delivery, postponement, return or replacement, plus rule-based automatic status updates per branch and governorate on an hourly cron job.
- Reports per company, client, branch, warehouse, delivery agent and governorate, with PDFs rendered through Puppeteer and Handlebars templates, plus order receipts with barcodes and QR codes.
- Firebase push notifications for order status changes and for messages to everyone on an order, image uploads to DigitalOcean Spaces through the S3 API, and Swagger docs generated from the routes.
- Shipped on Railway from a two-stage Dockerfile that installs headless Chrome and an Arabic font for the PDFs, with Biome for linting and formatting.
Technologies
TypeScript
Node.js
Express
Prisma
PostgreSQL
Firebase
Swagger
Docker
