Fastro

Fast and simple web application framework for deno

README

Fastro


Fast and simple web application framework for deno.

With deno near native performance , you can:

Manage your app and routing cleanly with builder pattern
Leverage existing Deno objects and methods such as Request , Headers , URLPattern
Access the request, the context, and the next callback before execute the route handler with
route and app middleware .
You can add multiple middleware at once in one route.
Get url param with URLPattern
Set the react component props from the server side
Attach your API and JSX-SSR-SEO-ready pages in a single file
Special purpose group handlers with ModuleFunction .

Create your first end point


Create a main.tsfile for deno-cli entry point.

  1. ``` ts
  2. import fastro from "https://deno.land/x/fastro/mod.ts";

  3. const f = new fastro();

  4. f.get("/", () => "Hello, World!");

  5. await f.serve();
  6. ```

Run the app

  1. ``` null
  2. deno run -A main.ts

  3. ```

Simple Examples


To find one that fits your use case, you can explore the examples page .

SSR Example


And to create your first JSX SSR page, you can follow the start page step by step .