🎉 setup project with hono
This commit is contained in:
parent
ead9d18b3d
commit
114c9f93d4
11 changed files with 3332 additions and 0 deletions
14
src/main.ts
Normal file
14
src/main.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { serve } from "@hono/node-server";
|
||||
import { Hono } from "hono";
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
serve(
|
||||
{
|
||||
...app,
|
||||
port: Number(process.env.PORT ?? 8787),
|
||||
},
|
||||
(addr) => {
|
||||
console.log(`Listening on http://localhost:${addr.port}`);
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue