From 39641e805a0a07db045ceea57d3ddd96b5f25207 Mon Sep 17 00:00:00 2001 From: Ysterbaard Date: Fri, 18 Sep 2026 19:41:26 +0200 Subject: [PATCH] chore: move JEI dev port to 6003 (avoid clash with Workflow CIPC service on :6002) --- NOTES.md | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NOTES.md b/NOTES.md index 741e746..44acbee 100644 --- a/NOTES.md +++ b/NOTES.md @@ -95,7 +95,7 @@ Verified by reading both files for invoice 154923 — same data, different PDF l ## 2026-09-17 — Build phase ### Major wins -- ✅ Next.js 14 + Tailwind app on **http://localhost:6002** +- ✅ Next.js 14 + Tailwind app on **http://localhost:6003** (changed from 6002 on 2026-09-18 to avoid clash with Workflow's CIPC service on :6002) - ✅ PB collections: JEI_invoices (15 fields + id), JEI_invoice_lines (8 fields + relations), JEI_stock_codes (4 fields + id) — 30 fields total - ✅ PDF extractor parses 38 records from 33 JEI supplier PDFs (skips `_non_jei/`) - ✅ Importer pushed 24 invoices + 70 stock codes + 118 lines into PB (idempotent — re-runs skip duplicates) @@ -154,7 +154,7 @@ JEI/ ``` ### How to use -1. Server runs on `http://localhost:6002` via `pnpm dev` (or `node_modules/.bin/next.cmd dev -p 6002`). +1. Server runs on `http://localhost:6003` via `pnpm dev` (or `node_modules/.bin/next.cmd dev -p 6003`). 2. To re-extract: `python scripts/extract_invoices.py` (reads all PDFs in `invoices/`, writes `data/review/all.json`). 3. To re-import: `python scripts/import_to_pb.py` (skips existing invoice_no + document_type pairs). 4. To refresh PB token: visit `https://pb.agent.apphub.co.za/_/`, copy `pocketbase_auth.token` from DevTools → Application → Local Storage, paste into `JEI/.env.local`. diff --git a/package.json b/package.json index a9ba049..02d3928 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev -p 6002", + "dev": "next dev -p 6003", "build": "next build", - "start": "next start -p 6002", + "start": "next start -p 6003", "lint": "next lint" }, "dependencies": {