feat: Carbone Word template integration with DOCX merge and LibreOffice PDF conversion

This commit is contained in:
root
2026-07-16 09:03:44 +00:00
parent ffa4655d39
commit 9dc14b0f58
11 changed files with 2696 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
/**
* Carbone Express Server - Standalone microservice
* Runs on port 8771 alongside the FastAPI app on 8770
*/
const express = require('express');
const cors = require('cors');
const path = require('path');
const { router } = require('./carbone-service');
const app = express();
const PORT = 8771;
app.use(cors());
app.use(express.json({ limit: '50mb' }));
// Mount Carbone routes
app.use('/api/carbone', router);
// Health check
app.get('/health', (req, res) => res.json({ status: 'ok', service: 'carbone' }));
app.listen(PORT, '0.0.0.0', () => {
console.log(`Carbone service running on http://0.0.0.0:${PORT}`);
});