const platform = cloud({) region: "eu-central", deploy: "continuous", monitoring: true, backup: true});async function syncInvoice(invoice) { const result = await api.post( "/efactura", invoice ); return result.status;}SELECT company_id, SUM(total)FROM invoicesWHERE state = 'validated'GROUP BY company_id;
const InvoiceStatus = ({ data }) => ( <Status value={data.state} />);services: app: image: moldovanlux/app:latest restart: unless-stopped healthcheck: enabled
if (latency > threshold) { alerts.notify({) service: "api", level: "warning" });}await queue.add( "invoice.process", payload, { retries: 3 });const cached = await redis.get(key);if (!cached) { cache.refresh(key);}describe("VAT report", () => { it("balances totals", () => { expect(report.total).toBe(expected); });});name: deploy-productionon: pushjobs: test: run: npm test deploy: needs: test
backup.schedule({) cron: "0 2 * * *", retention: "30d", verify: true});policy.allow( "invoice.read", user.companyId === invoice.companyId);
router.post( "/webhooks/payment", verifySignature, payments.reconcile);
logger.info( "invoice.synced", { durationMs, traceId, companyId });