diff --git a/.environment/.env.example b/.environment/.env.example new file mode 100644 index 0000000..7768a72 --- /dev/null +++ b/.environment/.env.example @@ -0,0 +1,2 @@ +DB_PASSWORD=abcdefg1234 +DB_USER=Admin \ No newline at end of file diff --git a/.environment/.gitkeep b/.environment/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cc977bb --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "request": "launch", + "name": "Launch Program", + "type": "node", + "program": "${workspaceFolder}/main.ts", + "cwd": "${workspaceFolder}", + "env": {}, + "runtimeExecutable": "/usr/bin/deno", + "runtimeArgs": [ + "run", + "--unstable", + "--inspect-wait", + "--allow-all" + ], + "attachSimplePort": 9229 + } + ] +} \ No newline at end of file diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..81148c0 --- /dev/null +++ b/deno.json @@ -0,0 +1,9 @@ +{ + "tasks": { + "dev": "deno run --watch main.ts" + }, + "imports": { + "@hono/hono": "jsr:@hono/hono@^4.6.14", + "@std/assert": "jsr:@std/assert@1" + } +} diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..3600b62 --- /dev/null +++ b/deno.lock @@ -0,0 +1,28 @@ +{ + "version": "4", + "specifiers": { + "jsr:@hono/hono@^4.6.14": "4.6.14", + "jsr:@std/assert@1": "1.0.9", + "jsr:@std/internal@^1.0.5": "1.0.5" + }, + "jsr": { + "@hono/hono@4.6.14": { + "integrity": "b39a5488266adf448fb1081bc3071a0d05145e72f3ab3ff83cf140e780c6c1de" + }, + "@std/assert@1.0.9": { + "integrity": "a9f0c611a869cc791b26f523eec54c7e187aab7932c2c8e8bea0622d13680dcd", + "dependencies": [ + "jsr:@std/internal" + ] + }, + "@std/internal@1.0.5": { + "integrity": "54a546004f769c1ac9e025abd15a76b6671ddc9687e2313b67376125650dc7ba" + } + }, + "workspace": { + "dependencies": [ + "jsr:@hono/hono@^4.6.14", + "jsr:@std/assert@1" + ] + } +} diff --git a/main.ts b/main.ts new file mode 100644 index 0000000..67a97db --- /dev/null +++ b/main.ts @@ -0,0 +1,7 @@ +import { Hono } from '@hono/hono' + +const app = new Hono() + +app.get('/', (c) => c.text('Hello Deno!')) + +Deno.serve(app.fetch) \ No newline at end of file diff --git a/main_test.ts b/main_test.ts new file mode 100644 index 0000000..0ff7da6 --- /dev/null +++ b/main_test.ts @@ -0,0 +1,6 @@ +import { assertEquals } from "@std/assert"; + + +Deno.test(function addTest() { + +});