🎉 setup project with hono

This commit is contained in:
Rose 2024-04-23 19:52:10 -04:00
parent ead9d18b3d
commit 114c9f93d4
No known key found for this signature in database
11 changed files with 3332 additions and 0 deletions

14
src/main.ts Normal file
View 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}`);
},
);