JaxNode July 2020
Dee-No
curl -fsSL https://deno.land/x/install/install.sh | sh
iwr https://deno.land/x/install/install.ps1 -useb | iex
// hello.ts
const message: string = 'Hello JaxNode!';
console.log(message);
// run the following command > deno run hello.ts
// httpserve.ts
import { serve } from "https://deno.land/std@0.59.0/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}