Create entry point file

This will be the entry point of Deno CLI.

Entrypoint

import application from "https://deno.land/x/fastro@v0.59.1/server/mod.ts";

const app = application();

app.get("/", () => "Hello world");

await app.serve();

How to run

You can run the webapp from local.

deno run -A hello_world.ts

Or try running a simple program from the repo.

deno run -A https://deno.land/x/fastro@v0.59.1/examples/hello_world.ts

Examples

You can find more examples on this page.