init: backend

This commit is contained in:
alikia2x (寒寒) 2025-03-31 02:47:33 +08:00
parent b2edaf8fc4
commit 1322cc4671
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
8 changed files with 78 additions and 56 deletions

View File

@ -0,0 +1,13 @@
{
"name": "@cvsa/backend",
"imports": {
"hono": "jsr:@hono/hono@^4.7.5"
},
"tasks": {
"start": "deno run --allow-net main.ts"
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
}
}

9
packages/backend/main.ts Normal file
View File

@ -0,0 +1,9 @@
import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => {
return c.text("Hello Hono!");
});
Deno.serve(app.fetch);

View File

@ -27,4 +27,4 @@ export const postgresConfigCred = {
database: databaseNameCred,
user: databaseUser,
password: databasePassword,
}
};