memory service schema added

This commit is contained in:
Storme-bit
2026-04-04 05:49:57 -07:00
parent ebbeecfa1a
commit 5d51aa9895
3 changed files with 90 additions and 0 deletions

View File

@@ -1,12 +1,16 @@
require ('dotenv').config();
const express = require('express');
const {getEnv} = require('@nexusai/shared');
const { getDB } = require('./db');
const app = express();
app.use(express.json());
const PORT = getEnv('PORT', '3002'); // Default to 3002 if PORT is not set
//initialize database on startup
const db = getDB();
// Health check endpoint
app.get('/health', (req, res) => {
res.json({ service: 'Memory Service', status: 'healthy' });