Add native Olist composition sync
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s

This commit is contained in:
Cauê Faleiros
2026-08-10 11:26:38 -03:00
parent e85dbe6f10
commit 1a430d4fb0
12 changed files with 669 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
const { createApp } = require('./server');
const { initDB } = require('./db');
const { PORT } = require('./config');
const { OLIST_SYNC_ENABLED, PORT } = require('./config');
const { scheduleOlistSync } = require('./services/olistService');
const start = async () => {
await initDB();
const app = createApp();
if (OLIST_SYNC_ENABLED) scheduleOlistSync();
app.listen(PORT, '0.0.0.0', () => {
console.log(`Nexstar Backend running at http://localhost:${PORT}`);
console.log(`Endpoint for n8n: POST http://localhost:${PORT}/api/data`);