feat: add api app

This commit is contained in:
Rotimi Best
2024-10-13 17:42:46 +01:00
parent d1a089a369
commit e1f32a21e4
6 changed files with 48 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"deno.enable": false,
"deno.enable": true,
"deno.lint": false,
"deno.unstable": false
}
+7
View File
@@ -0,0 +1,7 @@
{
"deno.enablePaths": [
"./"
],
"deno.enable": true,
"editor.inlayHints.enabled": "off"
}
+3
View File
@@ -0,0 +1,3 @@
```
deno task start
```
+14
View File
@@ -0,0 +1,14 @@
{
"imports": {
"hono": "npm:hono",
"zod": "npm:zod",
"@hono/zod-validator": "npm:@hono/zod-validator"
},
"tasks": {
"start": "deno run --allow-net main.ts"
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"version": "4",
"specifiers": {
"jsr:@hono/hono@^4.6.4": "4.6.4"
},
"jsr": {
"@hono/hono@4.6.4": {
"integrity": "9bbd937653ab902405af33743561140f8883d27dc730eb9ceac665e2468c8bf6"
}
},
"workspace": {
"dependencies": [
"jsr:@hono/hono@^4.6.4"
]
}
}
+7
View File
@@ -0,0 +1,7 @@
import { Hono } from 'hono';
const app = new Hono();
app.get('/', (c) => c.text('ClassroomIO API with Deno 😎!'));
Deno.serve({ port: 8787 }, app.fetch);