index.js 330 B

12345678910
  1. const app = require('./app');
  2. const config = require('./config');
  3. const port = config.port || 3000;
  4. app.listen(port, () => {
  5. console.log(`🚀 服务器运行在 http://localhost:${port}`);
  6. console.log(`📡 API 端点: http://localhost:${port}/api`);
  7. console.log(`🩺 健康检查: http://localhost:${port}/health`);
  8. });