Back to projects

Supply chain ยท Procurement

Pulse

Based in Indonesia

Private project

Demo data: screenshots come from a demo stack, not real records

Overview

Internal supply chain and procurement control tower for a business group: purchase orders, RFQs, vendor listings and analysis, invoices, down payment and finance payment control, inventory monitoring and KPI tracking, with role-based access and money kept in exact decimals.

The problem

Pulse is an internal supply chain and procurement control tower for a business group, used by procurement, finance, warehouse and management staff across several brands and legal entities. A Go JSON API backs a Nuxt 3 web app, and vendors have a limited portal.

Purchase requests, vendor quotations, purchase orders, down payments and invoices were tracked across spreadsheets and separate tools, so nobody had one view of what was ordered, paid and received. Foreign-currency orders, partial deliveries and partial payments make the money side easy to get wrong, and approvals need clear roles so the person who requests cannot also approve.

My part

I built and maintain the Go API and the Nuxt front end as a Golang backend and fullstack engineer at Hegemoni Group.

What I built

Procure-to-pay workflow
Purchase requests, RFQs, purchase orders, delivery orders, invoices, payment requests and payments with approval steps. An RFQ can carry several price tiers per SKU and convert to one purchase order, and the printable letters are generated.
Down payment monitoring
Tracks vendor deposits, how much of each deposit is used per invoice and delivery, and the remaining balance, with an Excel export.
Listings and vendor data
Payment listings with an approval flow, rejection reasons, cancellation rules and proof attachments, and vendor master data with de-duplication and merging.
Multi-currency
RFQs, purchase orders and listings accept currencies other than IDR, alongside a chart of accounts for finance.
Inventory and delivery views
Inventory monitoring and a critical-SKU view pull stock from the warehouse system on a schedule, with a delivery-plan calendar, an executive dashboard and KPI pages on top.
Access, audit and roles
Role-based access with permissions in the sign-in token, API tokens for machine callers, an access audit log and a retention job.

Decisions that shaped it

Exact money in the database
Amounts are stored as fixed-precision NUMERIC with a currency column, never floating point, and the Go handlers use a decimal library on the main paths.
Plain SQL and numbered migrations
The API uses pgx without an ORM so queries stay explicit, and schema changes are numbered SQL migration files. A written lesson records a migration that missed dependent foreign keys, so deletes now find dependents from the catalog.
Separation of duties and idempotency
Approve handlers run a separation-of-duties check before opening the transaction, so a denied request does not hold a connection. Write routes accept an idempotency key, and replays return the original response.
Errors that do not leak internals
Server errors go through one helper that logs the real error with the request ID and returns a masked message. Shared approve and pagination helpers replaced several copies that had drifted.
Retire the server-rendered UI for Nuxt
A written plan moves every page from the Go HTML layer to the Nuxt app, then removes the HTML layer and its session code, so the Go service becomes a pure JSON API.

Where it stands

  • A Go back end with a large test suite, including database-backed integration tests, and CI that runs format, vet, vulnerability and race checks against a Postgres service.
  • A Nuxt 3 front end with Pinia, charts and PWA support, unit tests and Playwright end-to-end specs for login, dashboards, procurement, finance and inventory.
  • CI fails the front end if too few unit tests run, a guard added after a test runner once reported success with zero tests.
  • Staging and production deploys go through GitHub Actions, and a hook blocks direct pushes to protected branches.

Core features

  • Purchase orders
  • RFQs
  • Vendor listings
  • Vendor analysis
  • Invoices
  • Down payment monitoring
  • Inventory monitoring
  • KPI tracking

Tech stack

  • Go
  • PostgreSQL
  • JWT
  • Nuxt 3
  • Pinia
  • Chart.js
  • Playwright
  • GitHub Actions