ProcureFlow
Purchase requisition and approval workflow on Spring Boot and Angular.
GitHub repo (opens in a new tab) ↗
- License:
- MIT
- CI security:
- CodeQL, gitleaks, osv-scanner
~/problem
Shows how role-based access, a multi-step approval chain and container-first deployment fit together in a typical internal business system.
An enterprise demo covering purchase requisition, tiered approval, purchase order and invoice with five roles. Spring Boot 4 on Java 21, an Angular 20 frontend, PostgreSQL, JWT login and OIDC single sign-on through a local Keycloak.
~/highlights
- Approval chain length depends on requisition amount (ADR 0004, tiered thresholds).
- Five roles: Employee, Department Manager, Procurement Officer, Finance Approver, Admin.
- Stateless JWT with BCrypt, plus Spring Security OIDC login against Keycloak, with SSO identity linking (ADR 0008).
- Flyway migrations, append-only by convention; Spotless enforces formatting in mvn verify.
- Testcontainers integration tests, Karma tests, multi-stage non-root Docker images.
- CI has build, test, lint and image build for both sides, plus a security workflow.
~/decisions
From the repo's own decision log, not summarized from memory.
Read access scoped to match write access that was already scoped
Write actions were already correctly restricted by role, but the requisition and purchase-order list endpoints returned every row to any authenticated user. A single ReadScopePolicy now applies one three-tier rule — org-wide roles see everything, department managers see their department, everyone else sees only their own — implemented once and reused by both services rather than duplicated.
~/screenshots
Real captures committed in the repo, not mockups.
~/architecture
- Angular frontend → Spring Boot API
- Standalone components and signals; dashboards for each role.
- Spring Boot API → PostgreSQL, Keycloak
- Requisition workflow, approval chain, catalog, vendors, departments.
- PostgreSQL
- Schema managed by Flyway.
- Keycloak → Spring Boot API
- Local OIDC identity provider for SSO.
~/stack
- Java 21
- Spring Boot 4
- Angular 20
- PostgreSQL
- Keycloak
- Flyway
- Testcontainers
- Docker
~/status
Complete demo with seeded accounts. MIT. Docker-based verification relies on CI because the authoring sandbox blocked registries.



