From 59f99c59d577ac4c640bee676856969ec035bcb6 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Thu, 14 Aug 2025 14:12:05 +0200 Subject: Initial commit --- src/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/index.ts (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..bc1cc19 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,15 @@ +import { serve } from '@hono/node-server' +import { Hono } from 'hono' + +const app = new Hono() + +app.get('/', (c) => { + return c.text('Hello Hono!') +}) + +serve({ + fetch: app.fetch, + port: 3000 +}, (info) => { + console.log(`Server is running on http://localhost:${info.port}`) +}) -- cgit v1.2.3