Add service dependencies and entry points

This commit is contained in:
Storme-bit
2026-04-04 05:01:31 -07:00
parent a265610312
commit 41a8bb3875
9 changed files with 1436 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
require ('dotenv').config();
const express = require('express');
const {getEnv} = require('@nexusai/shared');
const app = express();
app.use(express.json());
const PORT = getEnv('PORT', '3003'); // Default to 3003 if PORT is not set
// Health check endpoint
app.get('/health', (req,res) => {
res.json({ service: 'Embedding Service', status: 'healthy' });
})
app.listen(PORT, () => {
console.log(`Embedding Service listening on port ${PORT}`);
});