@codai/cbd
Version:
Codai Better Database - High-Performance Vector Memory System with HPKV-inspired architecture and MCP server
40 lines (31 loc) ⢠1.16 kB
JavaScript
/**
* CBD Engine Service Startup Script
* Real data testing with actual HTTP service
*/
import { CBDEngineService } from './src/service-simple.js';
async function startService() {
console.log('š Starting CBD Engine Service for Real Data Testing...');
const service = new CBDEngineService({
port: 4180,
host: 'localhost',
dataPath: './cbd-data'
});
try {
await service.start();
console.log('ā
CBD Engine Service is running and ready for real data testing');
console.log('š Service URL: http://localhost:4180');
console.log('š Health Check: http://localhost:4180/health');
console.log('š API Documentation: http://localhost:4180');
// Graceful shutdown
process.on('SIGINT', async () => {
console.log('\nš Shutting down CBD Engine Service...');
await service.stop();
process.exit(0);
});
} catch (error) {
console.error('ā Failed to start CBD Engine Service:', error);
process.exit(1);
}
}
startService();