chore: move JEI dev port to 6003 (avoid clash with Workflow CIPC service on :6002)
This commit is contained in:
parent
b13e4c38ab
commit
39641e805a
2 changed files with 4 additions and 4 deletions
4
NOTES.md
4
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`.
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue