Skip to content
guest@rgautam320:~$
cd ../work

for Emeritus Pharma (MedKart) · Ahmedabad, India· Dec 2022 – Sep 2023

Warehouse Management System

Inventory, stock movement and orders for MedKart’s warehouses.

a third-party system
Replaced
better inventory accuracy
~30%
faster fulfilment
25%

rgautam320=# EXPLAIN ANALYZE SELECT * FROM warehouse;

  1. Next.js dashboards to Laravel microservices
  2. Laravel microservices to Amazon SQS
  3. Laravel microservices to Redis
  4. Laravel microservices to PostgreSQL
  5. Laravel microservices to Zoho

Client: Emeritus Pharma (MedKart) Market: Ahmedabad, India Execution time: 10 months

Overview

A Warehouse Management System, built to replace the third-party system MedKart used, where inventory and orders change all day. It covers master data, the medicines catalogue, inbound and outbound, e-commerce sales, sales orders, GRN and supply to stores, and sends invoices to Zoho. It is built as microservices: Next.js dashboards for operations, Laravel services and REST APIs behind them, and PostgreSQL queries tuned to keep it all fast and correct.

role = Frontend Developer — full-stack in practice: Next.js dashboards, Laravel services, PostgreSQL

Architecture

Simplified, from the stack I worked with — not a full system map.

rgautam320=# SELECT * FROM architecture WHERE project = 'warehouse';

Warehouse Management System architectureRESTmessagescachequeriesinvoicesNext.js dashboardsWMS operationsAmazon SQSLaravel microservicesREST APIsRedisPostgreSQLinventory · ordersZohoinvoices

(6 nodes)

Features

rgautam320=# SELECT feature FROM warehouse.features;

Features
feature
Master data management and a medicines catalogue
Inbound, GRN (goods received notes) and outbound
Sales order management and e-commerce sales
Supply to stores
Invoice integration with Zoho
A microservice architecture
WMS interfaces and operational dashboards in Next.js
Backend services and REST APIs in Laravel
Complex PostgreSQL queries for inventory, orders and warehouse transactions
Automated inventory tracking, stock movement and order processing

(10 rows)

Decisions

$ git log --format='%h %s%n%n %b' -- decisions/

  1. b88378c decision: Optimise the queries the warehouse runs all day

    Inventory, orders and transactions change constantly, so query performance and correctness in PostgreSQL mattered more than anything on screen.

  2. 3822196 decision: Automate the manual steps

    Inventory tracking, stock movement and order processing were streamlined so fewer steps depended on manual input.

Outcomes & stack

rgautam320=# SELECT outcome FROM warehouse.outcomes;

Outcomes
outcome
Replaced a third-party system.
About 30% better inventory accuracy.
25% faster fulfilment.

(3 rows)

rgautam320=# SELECT string_agg(tech, ' · ') FROM warehouse.stack;

Stack
string_agg
Next.js · Laravel · PHP · Microservices · PostgreSQL · Redis · Amazon SQS · REST APIs · Zoho

(1 row)

psql — guest@rajangautam.com.np:5432/rgautam320
psql (16) — connected to "rgautam320" as "guest" (read-only).
Type help for help, or start typing and press Tab.