summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-08-14 14:12:05 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-08-14 14:12:05 +0200
commit59f99c59d577ac4c640bee676856969ec035bcb6 (patch)
tree02704db160b20505d31e5a494939a2e12c72f44b /src/index.ts
downloaduneven-59f99c59d577ac4c640bee676856969ec035bcb6.tar.gz
Initial commit
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts15
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}`)
+})