Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6d97296
feat: Implement REST API for PDF invoice generation
google-labs-jules[bot] Dec 5, 2025
1bd760a
feat: Implement REST API for PDF invoice generation
google-labs-jules[bot] Dec 5, 2025
64fcac4
feat: add OpenAPI documentation
google-labs-jules[bot] Dec 5, 2025
18daf13
Merge pull request #2 from ptr07/feat/add-openapi-docs
ptr07 Dec 5, 2025
071c96f
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
2e2f2ac
fix: handle malformed JSON in /api/generate-invoice
google-labs-jules[bot] Dec 5, 2025
f0b5293
Merge pull request #4 from ptr07/fix/json-parse-vulnerability
ptr07 Dec 5, 2025
39598f9
Merge pull request #3 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
2a10732
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
e621b47
Merge pull request #5 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
ac50124
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
a819cde
Merge pull request #6 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
cb3bbdc
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
7945afd
Merge pull request #7 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
f2d74b7
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
f9b23de
Merge pull request #8 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
b2d5137
feat: Add Dockerfile and entrypoint for production
google-labs-jules[bot] Dec 5, 2025
8a1d627
Merge pull request #9 from ptr07/feat/add-docker-support
ptr07 Dec 5, 2025
e189627
- Update Swagger configuration to recursively include all relevant AP…
piotr-olszak Dec 5, 2025
7a61657
Add REST API and Docker support to the library; update README with us…
piotr-olszak Dec 5, 2025
372ff1b
Merge pull request #10 from ptr07/feat/rest-api-fix
ptr07 Dec 5, 2025
934f75b
- Refactor file handling in `/api/generate-invoice` and `/api/generat…
piotr-olszak Dec 5, 2025
65d3505
Add validation for metadata schema using Zod and implement tests for …
ptr07 Dec 6, 2025
79adfb5
Refactor XML parsing logic and streamline PDF generation functions
ptr07 Dec 6, 2025
6b45955
Introduce worker pool for parallelized PDF generation and add benchmarks
ptr07 Dec 6, 2025
dbfe3e6
Introduce worker pool for parallelized PDF generation and add benchmarks
ptr07 Dec 6, 2025
f6e8b87
Replace custom worker pool implementation with Piscina for improved p…
ptr07 Dec 6, 2025
f2101dc
fix
Dec 16, 2025
dc975a8
Merge pull request #11 from lcbos/feat/rest-api-fix
ptr07 Dec 16, 2025
8c2fd05
fix stawek vat
Dec 23, 2025
bb431dc
Merge pull request #12 from lcbos/feat/rest-api-fix-stawek-vat
ptr07 Dec 29, 2025
a4b32a3
Merge remote-tracking branch 'upstream/main' into bos_aktualizacja
Feb 5, 2026
2652e07
fix po aktualizacji
Feb 5, 2026
2f9ea31
Merge pull request #13 from lcbos/bos_aktualizacja
ptr07 Feb 5, 2026
a0454ef
poprawka do generowania UPO
drybly88 Mar 31, 2026
1ed615c
aktualizacja do wersji 1.1.0
drybly88 Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ out

.idea
.vscode
*.swp
*.swp
tmp/
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Stage 1: Builder
FROM node:22-slim AS builder

WORKDIR /app

COPY package*.json ./
RUN npm install

COPY . .

RUN npm run build
RUN npx tsc -p tsconfig.server.json --outDir dist
RUN echo '{"type": "commonjs"}' > dist/package.json

RUN mkdir -p dist/server && cp src/server/worker-bootstrap.cjs dist/server/worker-bootstrap.cjs

# Stage 2: Runner
FROM node:22-slim

WORKDIR /app

COPY package*.json ./
RUN npm install --production

COPY --from=builder /app/dist ./dist

EXPOSE 3000

COPY entrypoint.sh .
RUN chmod +x entrypoint.sh

# Use exec form to ensure proper signal handling
ENTRYPOINT ["./entrypoint.sh"]
CMD []
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e

exec node dist/server/index.js
Loading