summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
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}`)
+})