15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
|
import { serve } from '@hono/node-server';
|
||
|
|
||
|
import { app } from './server/main';
|
||
|
serve(
|
||
|
{
|
||
|
fetch: app.fetch,
|
||
|
port: 3000,
|
||
|
hostname: 'localhost',
|
||
|
},
|
||
|
|
||
|
async () => {
|
||
|
console.log('Server started on http://localhost:4000/api/doc');
|
||
|
},
|
||
|
).listen();
|