diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-08-14 14:12:05 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-08-14 14:12:05 +0200 |
commit | 59f99c59d577ac4c640bee676856969ec035bcb6 (patch) | |
tree | 02704db160b20505d31e5a494939a2e12c72f44b /src | |
download | uneven-59f99c59d577ac4c640bee676856969ec035bcb6.tar.gz |
Initial commit
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 15 |
1 files changed, 15 insertions, 0 deletions
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}`) +}) |