monorepo/apps/api/src/run.ts

15 lines
261 B
TypeScript

import { serve } from "@hono/node-server";
import { app } from "./server/main";
serve(
{
fetch: app.fetch,
port: 3100,
hostname: "localhost",
},
async () => {
console.log("Server started on http://localhost:3100/api/");
},
).listen();