UNPKG

@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
#!/usr/bin/env node /** * 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();