chore: move JEI dev port from 6003 to 5001 (user preference)

This commit is contained in:
Ysterbaard 2026-09-18 21:24:07 +02:00
parent a50990d88f
commit 146d31df87
2 changed files with 4 additions and 4 deletions

View file

@ -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:6003** (changed from 6002 on 2026-09-18 to avoid clash with Workflow's CIPC service on :6002)
- ✅ Next.js 14 + Tailwind app on **http://localhost:5001** (changed from 6002 → 6003 → 5001 on 2026-09-18; 6002 was the Workflow CIPC service, 6003 conflicted briefly with user's other services, 5001 was the user's preferred port)
- ✅ 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:6003` via `pnpm dev` (or `node_modules/.bin/next.cmd dev -p 6003`).
1. Server runs on `http://localhost:5001` via `pnpm dev` (or `node_modules/.bin/next.cmd dev -p 5001`).
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`.

View file

@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 6003",
"dev": "next dev -p 5001",
"build": "next build",
"start": "next start -p 6003",
"start": "next start -p 5001",
"lint": "next lint"
},
"dependencies": {