monorepo/apps/api/src/run.ts

15 lines
285 B
TypeScript
Raw Normal View History

2025-02-09 10:39:10 +08:00
import { serve } from '@hono/node-server';
import { app } from './server/main';
serve(
{
fetch: app.fetch,
2025-02-14 14:17:25 +08:00
port: 4000,
2025-02-09 10:39:10 +08:00
hostname: 'localhost',
},
async () => {
2025-04-19 12:46:08 +08:00
console.log('Server started on http://localhost:4000/api/');
2025-02-09 10:39:10 +08:00
},
).listen();