diff --git a/deno/deno.json b/deno/deno.json new file mode 100644 index 0000000..ee1dab0 --- /dev/null +++ b/deno/deno.json @@ -0,0 +1,13 @@ +{ + "tasks": { + "dev": "deno run --watch main.ts" + }, + "deploy": { + "project": "d7ff4021-31bb-4663-b015-12a9e7b9bb64", + "exclude": [ + "**/node_modules" + ], + "include": [], + "entrypoint": "main.ts" + } +} \ No newline at end of file diff --git a/deno/main.ts b/deno/main.ts new file mode 100644 index 0000000..ed11cba --- /dev/null +++ b/deno/main.ts @@ -0,0 +1,8 @@ +const now = new Date(); + +if (import.meta.main) { + Deno.serve(() => new Response(`${now}: Hello World!`)); +} + +// $ curl https://great-crow-36.deno.dev/ +// Mon Apr 22 2024 03:13:21 GMT+0000 (Coordinated Universal Time): Hello World!