init: backend
This commit is contained in:
parent
b2edaf8fc4
commit
1322cc4671
@ -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
9
packages/backend/main.ts
Normal 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);
|
@ -27,4 +27,4 @@ export const postgresConfigCred = {
|
|||||||
database: databaseNameCred,
|
database: databaseNameCred,
|
||||||
user: databaseUser,
|
user: databaseUser,
|
||||||
password: databasePassword,
|
password: databasePassword,
|
||||||
}
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user