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;
- Next.js dashboards to Laravel microservices
- Laravel microservices to Amazon SQS
- Laravel microservices to Redis
- Laravel microservices to PostgreSQL
- 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';
(6 nodes)
Features
rgautam320=# SELECT feature FROM warehouse.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/
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.
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;
| outcome |
|---|
| Replaced a third-party system. |
| About 30% better inventory accuracy. |
| 25% faster fulfilment. |
(3 rows)
rgautam320=# SELECT string_agg(tech, ' · ') FROM warehouse.stack;
| string_agg |
|---|
| Next.js · Laravel · PHP · Microservices · PostgreSQL · Redis · Amazon SQS · REST APIs · Zoho |
(1 row)