Skip to content

Instantly share code, notes, and snippets.

@mwilc0x
Created May 16, 2020 15:59
Show Gist options
  • Save mwilc0x/5254af377a3deb7832c4a66420ce08c8 to your computer and use it in GitHub Desktop.
Save mwilc0x/5254af377a3deb7832c4a66420ce08c8 to your computer and use it in GitHub Desktop.
simple deno app server
import { Application } from "https://deno.land/x/oak/mod.ts";
import { config } from "https://deno.land/x/dotenv/mod.ts";
const app = new Application();
const { HOST, PORT } = config();
console.log(`Listening on port:${PORT}...`);
await app.listen(`${HOST}:${PORT}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment