Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
deno run --allow-read=$PWD --allow-net= server.ts
import { Application, send } from "";
const app = new Application();
app.use(async (context) => {
await send(context, context.request.url.pathname, {
root: `${Deno.cwd()}/`,
index: "index.html",
console.log(`Started Deno Server 🌳🌳\nOn "${Deno.cwd()}/src"`)
await app.listen({ port: 8100 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment