Boilerplate Deno stuff

This commit is contained in:
Alex Gleason
2023-03-04 19:55:28 -06:00
commit d855c05fac
7 changed files with 56 additions and 0 deletions

7
src/app.ts Normal file
View File

@@ -0,0 +1,7 @@
import { Hono } from '@/deps.ts';
const app = new Hono();
app.get('/', (c) => c.text('Hono!'));
export default app;

1
src/deps.ts Normal file
View File

@@ -0,0 +1 @@
export { Hono } from 'https://deno.land/x/hono@v3.0.2/mod.ts';

6
src/server.ts Normal file
View File

@@ -0,0 +1,6 @@
import 'https://deno.land/std@0.177.0/dotenv/load.ts';
import { serve } from 'https://deno.land/std@0.177.0/http/server.ts';
import app from './app.ts';
serve(app.fetch);