Created
May 16, 2020 15:59
-
-
Save mwilc0x/5254af377a3deb7832c4a66420ce08c8 to your computer and use it in GitHub Desktop.
simple deno app server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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